title: Upgrade Helm Error: the object has been modified; please apply your changes to the latest version and try again
body: <p>I have successfully installed my helm chart and was trying to change the value of my image version by doing:</p>
  <pre><code>helm upgrade --set myAppVersion=1.0.7 myApp . --atomic --reuse-values
  </code></pre>
  <p>This upgrade fails with this error:</p>
  <p>The command fails with this error:</p>
  <blockquote>
  <p>Error: UPGRADE FAILED: an error occurred while rolling back the
  release. original upgrade error: cannot patch &quot;myappsecret&quot; with
  kind Secret: Operation cannot be fulfilled on secrets
  &quot;myappsecret&quot;: the object has been modified; please apply your
  changes to the latest version and try again: cannot patch
  &quot;myappsecret&quot; with kind Secret: Operation cannot be fulfilled on
  secrets &quot;diffgramsecret&quot;: the object has been modified; please apply
  your changes to the latest version and try again</p>
  </blockquote>
  <p>It's somehow related to a secret I have in my deployment:</p>
  <p>This its the yaml file of the secret:</p>
  <pre><code>apiVersion: v1
  data:
    .dockerconfigjson: {{ .Values.imagePullCredentials.gcrCredentials }}
  kind: Secret
  metadata:
    creationTimestamp: &quot;2021-01-20T22:54:29Z&quot;
    managedFields:
    - apiVersion: v1
      fieldsType: FieldsV1
      fieldsV1:
        f:data:
          .: {}
          f:.dockerconfigjson: {}
        f:type: {}
      manager: kubectl
      operation: Update
      time: &quot;2021-01-20T22:54:29Z&quot;
    name: myappsecret
    namespace: default
    resourceVersion: &quot;2073&quot;
    uid: 7c99cb08-5576-4fa3-b6f9-d8d11d76d32c
  type: kubernetes.io/dockerconfigjson
  </code></pre>
  <p>This secret is used on my deployments to fetch the docker image from our GCR docker registry.</p>
  <p>I'm not sure why this is causing problems, because the only value I'm changing is the docker image tag.</p>
  <p>Can anybody help me with this?</p>