title: helm rollout restart with changes in configmap.yaml
body: <p>Helm has recently added support for <a href="https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments" rel="nofollow noreferrer">automatically-roll-deployments</a> but we need to set a configmap.yaml file where it looks for changes.</p>
  <p>In my usecase we have a single yaml file <code>deploy-template.yaml</code> with structure -</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  spec:
    template:
      metadata:
        annotations:
          checksum/config: {{ include (print $.Template.BasePath &quot;/configmap.yaml&quot;) . | sha256sum }}
  
  {...}
  ---
  
  apiVersion: v1
  kind: Service
  {...}
  ---
  
  apiVersion: v1
  kind: ConfigMap
  {...}
  </code></pre>
  <p>Is there a way to keep track of the <code>ConfigMap</code> from the <code>Deployment</code> above in the same file?</p>
  <p>Last resort would be to separate <code>ConfigMap</code> out into a new file.</p>