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

♻️ make function kpt compatible #5

Merged
merged 6 commits into from
Jan 26, 2023
Merged

Conversation

antoinemartin
Copy link
Contributor

kpt only does a function at once, and honors the removal
of the config.kuberntes.io/local-config marked resources.

In consequence, we cannot use config.kuberntes.io/local-config
anymore to inject resources. We replace it with
config.kaweezle.com/local-config.

prune-local is not a workaround anymore but becomes
a feature. The README needs to be adapted in consequence.

kpt only does a function at once, and honors the removal
of the `config.kuberntes.io/local-config` marked resources.

In consequence, we cannot use `config.kuberntes.io/local-config`
anymore to inject resources. We replace it with
 `config.kaweezle.com/local-config`.

`prune-local` is not a workaround anymore  but becomes
a feature. The README needs to be adapted in consequence.
kpt wants a function configuration at once.
- Now annotations are explicit. To make a resource local to the
transformation, you need to add the annotation `config.kaweezle.com/local-config`.
- The previous means that without annotation, generated resources will be saved. However, they will be saved in a file named `.krmfnbuiltin.yaml`
- There is no more `keep-local` as it is not needed anymore.
- Documentation needs to be updated.
Uses the selectors used for patches.
@antoinemartin antoinemartin marked this pull request as ready for review January 26, 2023 19:56
@antoinemartin antoinemartin merged commit 31a2a21 into main Jan 26, 2023
@antoinemartin antoinemartin deleted the feature/kpt-compatible branch January 26, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant