-
Notifications
You must be signed in to change notification settings - Fork 227
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
Support and document the variant-constructor pattern #2590
Comments
+100
Thinking out loud: since If I zoom out a bit, it looks like a built-in hook for invoking some logic on |
I think even a to command solution would be fine here, but the UX needs to be super easy.
This is taking the smart defaults to the max. Knowing what image to use when no tag is specified, knowing that the fn name is provided when there is no -i, knowing that when there is no param name specified we put the value in the first parameters. Having a convention for some kpt provided values like package name ($name). |
So will be tackling this in current sprint that is starting today. |
I think this is more or less done. |
When creating a variant of a package (similar to variants in kustomize), it needs to be possible to change the names (and/or namespaces) of the resources in the package accordingly. Kustomize supports name prefix and suffix to make this simpler, but it's not set up automatically. One needs to build a tool on top of kustomize to generate variants (subdirectory, kustomization.yaml, name prefix/suffix).
Setting the names of objects is the #1 most common transformation applied to configuration packages across all systems and tools. The approach should be standardized across all packages of all types.
I propose 2 approaches:
include-meta-resources
is supported consistently acrosskpt fn
commands #2184cc @mikebz @justinsb @droot
The text was updated successfully, but these errors were encountered: