-
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
Merge lists? #4514
Comments
@dev-samples: 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. |
The field name is /close |
@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. |
Yes you are right works as expected. The example I provided was not really clear, sorry for that. I am trying to patch this values file: in a flux release. E.g with this base: base/kustomization.yaml
base/release.yaml
And this overlay. dev/kustomization.yaml
dev/release.yaml
But when I run build I get:
So the base values are gone. I am sure I am missing something basic here maybe that kustomize is not working with arbitrary values files? |
Kustomize gets merge keys from openapi data, so if you want it to merge CRDs you will have to provide your own openapi schema through the openapi field. You will have to specify the merge key for the spec.values.controller.containerEnv object. Docs are here, with an example: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/openapi/ It's not the easiest thing in the world to do ATM but we are hoping to come up with a better way to support CRDs. |
Ok that's gonna be a mess since in the case of flux most objects are crds. Also how would the openAPI know that this is a mix of a flux crd and elements from a values file from the Jenkins helm chart? |
In my base I have:
base/deployment.yaml
base/kustomization.yaml
In my overlay I have:
overlay/deployment.yaml
overlay/kustomization.yaml
But when I build its only the ENVs from the overlay that gets generated:
How do I merge lists?
Possibly related:
fluxcd/helm-controller#300
The text was updated successfully, but these errors were encountered: