title: Helm chart restart pods when configmap changes
body: <p>I am trying to restart the pods when there is a confimap or secret change. I have tried the same piece of code as described in: <a href="https://github.com/helm/helm/blob/master/docs/charts_tips_and_tricks.md#automatically-roll-deployments-when-configmaps-or-secrets-change" rel="noreferrer">https://github.com/helm/helm/blob/master/docs/charts_tips_and_tricks.md#automatically-roll-deployments-when-configmaps-or-secrets-change</a>
  However, after updating the configmap, my pod does not get restarted. Would you have any idea what could has been done wrong here?</p>
  
  <pre><code>apiVersion: apps/v1beta2
  kind: Deployment
  metadata:
    name: {{ template "app.fullname" . }}
    labels:
      app: {{ template "app.name" . }}
      {{- include "global_labels" . | indent 4 }}
  spec:
    replicas: {{ .Values.replicaCount }}
    selector:
      matchLabels:
        app: {{ template "app.name" . }}
        release: {{ .Release.Name }}
    template:
      metadata:
        annotations:
          checksum/config: {{ include (print $.Template.BasePath "/configmap.yml") . | sha256sum }}
          checksum/secret: {{ include (print $.Template.BasePath "/secret.yml") . | sha256sum }}
  </code></pre>