gopaddle-io / configurator

Synchronize and Version Control ConfigMaps & Secrets across Deployment Rollouts.
Other
112 stars 45 forks source link

Creating a secret creates multiple secret revisions #69

Closed renugadevi-2613 closed 2 years ago

renugadevi-2613 commented 2 years ago

Describe the bug If a secret deployed in cluster, multiple revisions of customSecret gets created. Because of this multiple rolling updates are trigger on a deployment that references the secret.

To Reproduce

  1. Deploy configurator in k8s cluster
  2. Create a secret
  3. Get the revision for that secret. You can note that multiple revisions of secret for created.
  4. Use the secret name in deployment under: spec.template.spec.volumes.secret.secret.secretName
  5. Apply the deployment yaml file
  6. configurator annotation is added in the spec.template.metadata.annotation level
  7. Rolling update gets triggered multiple times because of the multiple secret revisions