-
Notifications
You must be signed in to change notification settings - Fork 110
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
kapp template rules do not work against non-typed fields such as initContainers: null
#89
Comments
yeah, currently kapp expects that types are followed for each level of some of the default rules that are included with kapp. in this case it wants initContainers to be an array, not null. ill take a look if it's safe to relax this constraint. meanwhile you can use an overlay to drop initContainers if it's null (yall prolly already did that :) ) |
initContainers: null
I have a similar but likely different cause (there is no
|
Looks like there is a typo in that chart |
Sorry - looks like it was a copy/paste error as the original yaml doesn't have envFromen in it - so that is not the cause, editing above comment to reflect this |
ok, looks like the cause is the following empty (and therefore null) |
This issue was discussed in the Carvel Community meeting on 3/15/21. The Carvel maintainers pointed to https://github.com/vmware-tanzu/carvel-kapp/blob/develop/pkg/kapp/config/default.go#L256 For the next step, our goal is do some manual testing in order to answer: |
Bump. We've been putting this into our ytt templates to work around this, but would love to not need to do this:
|
@voor Thanks for the bump :)
We will set a priority for this soon. |
initContainers: null
initContainers: null
Can we raise the priority of this? We are hitting a very similar error with bitnami grafana charts
Is there a workaround other than the ytt based one that @voor described? We don't use |
Hey @mohansitaram! I am not sure if there is any other alternative, but we have definitely put this on high priority and it might be available in the next release. Meanwhile, we could help you with resolving this with ytt if you want. |
Thanks @praveenrewar. Can I assume that this will be a part of kapp controller version 0.41.0? |
That is the goal for now ! @mohansitaram |
When trying to deploy the bitnami postgresql chart as part of cf-for-k8s via kapp, we get the following error:
kapp: Error: ObjectRefSetMod for path 'spec,template,spec,initContainers,(all),env,(all),valueFrom,configMapKeyRef' on resource 'statefulset/cf-db-postgresql (apps/v1) namespace: cf-db': Unexpected non-array found: <nil>
The relevant configuration yaml looks like this (with irrelevant lines omitted):
When we try to deploy the same YAML with
kubectl apply -f
, we don't get any error.We're using kapp version 0.22.0.
Thanks!
Jen & @jamespollard8
The text was updated successfully, but these errors were encountered: