-
Notifications
You must be signed in to change notification settings - Fork 228
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
ensure include-meta-resources
is supported consistently across kpt fn
commands
#2184
Comments
Mostly likely, no work is required. I would like @phanimarupaka to audit the fn commands to see if everything is in place and consistent. |
@droot Use case:
So using kpt fn eval -i gcr.io/kpt-fn/apply-setters:v0.1 --fn-config setters-config.yaml --include-meta-resources
kpt fn eval -i gcr.io/kpt-fn/set-namespace:v0.1 --fn-config namespace-config.yaml
This functionality is not offered by So we should support, |
kpt fn render still doesn't have --include-meta-resources? Is there another way to get that behavior? |
cc @justinsb |
@bgrant0607 Currently no. We are planning to include it as part of selectors. Can you please explain your use-case explaining why you need it ? |
What I'm doing now is copying Kptfile info (current the name) into a ConfigMap so that it can be read during kpt fn render. |
Example code that look for the package name copied into a ConfigMap and then uses it to change the namespace of the resources in the package. I'm calling this a "variant constructor" pattern.
|
I also think we may need to collect information from the environment and record it as local pseudo-resources, which kpt right now treats as meta-resources, to use as well known inputs in the function pipeline. For instance, the values we were treating as autosetters previously could be recorded in a context object. |
ref: #2781 |
No description provided.
The text was updated successfully, but these errors were encountered: