Skip to content

Enable helm controller to detect and pick up hashed configmaps and secrets #1270

@casibbald

Description

@casibbald

relates to #1163

@tbondarchuk @hiddeco

I have this working with static secret names (no hashing).

secretGenerator:
  - name: my-sops-secrets
    namespace: myapp
    envs:
      - files/application.secrets.env
configMapGenerator:
  - name: my-configmap
    namespace: myapp
    envs:
      - files/application.properties

  - name:my-helm-config
    namespace: myapp
    files:
      - values.yaml=helm/values.yaml

The problem arises when you try to use hashed secret names with:

generatorOptions:
  disableNameSuffixHash: true
  immutable: true

The reason for having a hash value is to trigger an update to the pods, forcing kube to restart them and pick up changes in the ConfigMap/Secrets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions