-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Question] Nested envFrom injection #4539
Comments
@rafalix1337: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I found a workaround to my problem, it's less comfortable than the way I was trying to but it's working :) I added my workaround solution and unsuccessful try in git repository. You can see: https://github.com/rafalix1337/kustomize-issue-71622398 Firstly, I was trying to add generating config maps and injecting envs on different levels like backend/frontend/specific app but this was causing an error. You can see code in the directory not_working_example In the workaround, I left generating config maps on specific levels but the injecting envs I had to move to one place, in my case kustomization.yaml on the main level. You can see code in the directory working_example |
Thanks for providing the full samples--it really helps! The problem with your not-working sample is that the If I've misunderstood, please reopen. /kind support |
@KnVerey: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello,
I'm trying to add envs injection based on
envFrom
A simplified structure looks something like that:
I would like to generate properties on the main level(common), backend/frontend level, and particular app level.
So I was trying to add the following patch on main level and it works:
and following code to nested directories(backend/frontend/particular app)
But it doesn't work with the following error:
I have seen some examples on GitHub where that syntax was used: https://github.com/search?l=YAML&p=1&q=%2Fspec%2Ftemplate%2Fspec%2Fcontainers%2F0%2FenvFrom%2F-&type=Code (you have to be logged in to see results) And I'm not sure this stopped work on specific Kustomize version(I'm using the newest version - 4.5.3) or it never worked
I have already written some Kustomize patches and syntax with
/-
to resources usually worked fine to resources that already exist on the manifest.It's possible to inject that
envFrom
on different levels?The text was updated successfully, but these errors were encountered: