Closed Brafgard closed 3 years ago
Hi @Brafgard, it seems it shouldn't fail if you are not overriding .Values.slave.statefulset...
, are you? I mean default values always include:
slave:
statefulset:
labels: {}
annotations: {}
updateStrategy: RollingUpdate
## Partition update strategy
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
# rollingUpdatePartition:
volumeClaimTemplates:
labels: {}
annotations: {}
It should not fail, could you check it?
Hello! I have checked that - no overriding of statefulset from me. Here is the list of the VALUES _USER-SUPPLIED VALUES: containerSecurityContext: allowPrivilegeEscalation: false master: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution:
Are you using --set
or -f values.yaml
to set those parameters?
Is it matter? :) For installation use ps1 script - inside^ $values = @" blabla "@ $values | helm install ...
Is it matter?
I was trying to see if there is any difference when using --set
or values.yaml
but there isn't. My concern was about the merging strategy so it was doing the slave.statefulset.volumeClaimTemplates.labels
was lost.
Regarding use --reuse-values
, it seems to not be using the default values.yaml
provided by the new chart version but the one used to install the first version so you are losing slave.statefulset.volumeClaimTemplates.labels
default values.yaml
BTW, it could be fixed adding an extra if
that check slave.statefulset.volumeClaimTemplates
before using slave.statefulset.volumeClaimTemplates.labels
. I'm going back to you soon with a PR fixing it
Thank you very much!
Hi @Brafgard I've created a new PR trying to fix this problem, please, let's move the conversation there. Thanks so much for your feedback
Which chart: bitnami/redis
Describe the bug Update from the chart from version 12.5. to 12.6. by helm upgrade command failed with error " Error: UPGRADE FAILED: template: redis/templates/redis-slave-statefulset.yaml:345:22: executing "redis/templates/redis-slave-statefulset.yaml" at <.Values.slave.statefulset.volumeClaimTemplates.labels>: nil pointer evaluating interface {}.labels "
To Reproduce 1) install redis chart v. 12.5.1 2) try to update it by helm upgrade redis redis --repo https://charts.bitnami.com/bitnami --version 12.6.0 --wait --reuse-values 3) error appeared "Error: UPGRADE FAILED: template: redis/templates/redis-slave-statefulset.yaml:345:22: executing "redis/templates/redis-slave-statefulset.yaml" at <.Values.slave.statefulset.volumeClaimTemplates.labels>: nil pointer evaluating interface {}.labels"
Expected behavior Upgrade from 12.5. to 12.6. version completed successfully.
Version of Helm and Kubernetes:
helm version
:kubectl version
: