-
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
Value from YAML fragment that is embedded as multiline scalar value #4822
Comments
I have meanwhile taken note of the recommendation that one should migrate from |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Hi @christian-2 I think your use case is covered in my enhancement proposal. Could you check the above proposal and decide whether that is enough for your want? |
@koba1t Sorry for the late response @annasong20 @koba1t Yes, I can see now that the same use case has come up before, and I'd like to support these earlier efforts. Hence I would not insist on my sketched solution (with |
Defer to @koba1t |
Hi @christian-2 I want to get a lot of feedback for this function! |
I would like to exact a value from a
ConfigMap
that contains a YAML fragment that is embedded inside another YAML fragment as multlline scalar value.ConfigMap
s like this constitute a fairly common pattern with Kubernetes.The relevant part of my
ConfigMap
looks as follows:The relevant part of my
kustomization.yaml
looks as follows:This does not work for comprehensible reasons: It assumes that there is a single YAML fragment, not one that embeds another one as multiline string.
I guess what would be needed is support for
fieldpath
s such asyaml(data.config).test.url
, conceptually speaking. Or am I missing something? Is there support for accessing such embedded values for the purpose of setting environment variables inkustomization.yaml
and if so, how could this be accomplished in my concrete example.The text was updated successfully, but these errors were encountered: