Open mrhovunping opened 10 months ago
The problem comes from the code :
{{- if and .Values.sidecars (ne .Values.sidecars.name "") (ne .Values.sidecars.image "") }}
sidecars: {{ include "sidecar.properties" | nindent 4 }}
{{- end }}
Where it should be
{{- if and .Values.sidecars (ne .Values.sidecars.name "") (ne .Values.sidecars.image "") }}
sidecars: {{ include "sidecar.properties ." | nindent 4 }}
{{- end }}
Same problem found in redis-replication / redis-sentinel and redis-cluster with sidecars and initContainer
Does this issue reproduce with the latest release?
Yes.
redis-cluster: 0.15.11 redis-replication: 0.15.11 redis-sentinel: 0.15.12
What operating system and processor architecture are you using (
kubectl version
)?kubectl version
OutputWhat did you do?
Set SideCar `
What did you expect to see? ` Expect to have a yml file generated with :
apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisReplication metadata: name: test labels: app.kubernetes.io/name: test helm.sh/chart: redis-replication-0.15.11 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: test app.kubernetes.io/version: 0.15.1 app.kubernetes.io/component: middleware spec: clusterSize: 3
kubernetesConfig: image: "quay.io/opstree/redis:v7.0.12" imagePullPolicy: "IfNotPresent"
redisExporter: enabled: false image: "quay.io/opstree/redis-exporter:v1.44.0" imagePullPolicy: "IfNotPresent" storage: volumeClaimTemplate: spec: accessModes:
ReadWriteOnce resources: requests: storage: 1Gi podSecurityContext: fsGroup: 1000 runAsUser: 1000 sidecars:
name: toto image: registry.gitlab.com/smartadserver/infra/containers/k8s-redis-labeler-sidecar/k8s-redis-labeler-sidecar:0.0.3 imagePullPolicy: IfNotPresent resources:
limits: cpu: 100m memory: 128Mi requests: cpu: 50m memory: 64Mi env:
What did you see instead?
Error message: