Skip to content

Deployments require manual rollout when configmap and secret change #116

Description

@JeffCook-Alethea

I have noticed that when making updated to the values that affect the ConfigMap and/or Secret the deployment needs to be rollout restarted

kubectl rollout restart deployment/

If the pod spec contained the sha hash of the configmap and secret it would automatically rollout.

https://v3.helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

kind: Deployment
spec:
  template:
    metadata:
      annotations:
        checksum/configmap: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
        checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions