Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce basic reconciliation for KongPluginInstallation CRD #424

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

programmer04
Copy link
Member

@programmer04 programmer04 commented Jul 23, 2024

What this PR does / why we need it:

It introduces code for fetching and unpacking the content of container images that contain plugins. The expected format that will be documented is

FROM scratch

COPY plugin.lua /plugin.lua

also basic reconciliation of KongPluginInstallation is introduced. A plugin is unpacked to a respective ConfigMap and status conditions are set accordingly.

Which issue this PR fixes

Closes #379

Special notes for your reviewer:

Tests verify the current state, they will evolve with time. Currently, integration tests don't focus on actual behavior, because it's not there yet. For now, it's better to have such a test than nothing.

It's not the final state, first of all, let's get functionality end to end, and next improve it.

I'm happy to make crucial improvements as part of this PR, for more minor/harder I'd rather create new tasks to do as a part of the Kong plugin distribution epic.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect significant changes

@programmer04 programmer04 added enhancement New feature or request area/feature New feature or request labels Jul 23, 2024
@programmer04 programmer04 added this to the KGO v1.4.x milestone Jul 23, 2024
@programmer04 programmer04 self-assigned this Jul 23, 2024
@programmer04 programmer04 force-pushed the custom-plugin branch 8 times, most recently from 3d5a9a9 to b7c5456 Compare July 29, 2024 11:30
@programmer04 programmer04 force-pushed the custom-plugin branch 7 times, most recently from 9d08f69 to 7f3894a Compare August 5, 2024 19:35
@programmer04 programmer04 marked this pull request as ready for review August 5, 2024 21:01
@programmer04 programmer04 requested a review from a team as a code owner August 5, 2024 21:01
api/v1alpha1/kongplugin_installation_types.go Outdated Show resolved Hide resolved
controller/kongplugininstallation/controller.go Outdated Show resolved Hide resolved
controller/kongplugininstallation/controller.go Outdated Show resolved Hide resolved
controller/kongplugininstallation/controller.go Outdated Show resolved Hide resolved
controller/kongplugininstallation/controller.go Outdated Show resolved Hide resolved
controller/kongplugininstallation/image/image.go Outdated Show resolved Hide resolved
controller/kongplugininstallation/image/image.go Outdated Show resolved Hide resolved
modules/cli/cli.go Outdated Show resolved Hide resolved
test/integration/utils.go Show resolved Hide resolved
config/debug/manager_debug.yaml Outdated Show resolved Hide resolved
config/dev/manager_dev.yaml Outdated Show resolved Hide resolved
@programmer04 programmer04 force-pushed the custom-plugin branch 3 times, most recently from 60127db to fa258f4 Compare August 8, 2024 14:28
@programmer04 programmer04 requested a review from mlavacca August 8, 2024 14:28
@programmer04 programmer04 enabled auto-merge (squash) August 9, 2024 10:22
@programmer04 programmer04 merged commit cdfb65a into main Aug 9, 2024
20 checks passed
@programmer04 programmer04 deleted the custom-plugin branch August 9, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/feature New feature or request enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Controller of Kong Plugin installation CRD is able to fetch OCI image and unpack content to ConfigMap
4 participants