admin管理员组

文章数量:1125578

I want to install the Redis Helm chart by Bitnami, configuring an additional annotation for the statefulset resource as detailed in this page of Helm doc.

cat myconfig.yml

[...]
sentinel:
  enabled: true
master:
  podAnnotations:
    checksum/config: '{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}'
[...]

The problem is when I install the chart, dry-run at the moment, the annotation is missing:

helm install redis-sentinel bitnami/redis -f myconfig.yml --dry-run=server >> dry-run.yml
    
cat dry-run.yml

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: redis-sentinel
spec:
  replicas: 3
  serviceName: redis-sentinel
  updateStrategy:
    type: RollingUpdate
  template:
    metadata:
      annotations:
        checksum/configmap: 99
        checksum/health: 88
        checksum/scripts: 77
        checksum/secret: 66

What I was expecting is

spec:
  template:
    metadata:
      annotations:
        checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
        checksum/configmap: foo
        checksum/health: goo
        [...]

本文标签: helmfileBitnami Helm Redis ignores podAnnotations in configuration fileStack Overflow