Describe the bug
In my deployment, i am referencing the secret:
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
name: global-env-secret
key: BALANCE_SERVICE_CLIENT_SECRET
If any key in the global-env-secret changes, it restarts the pods. It should only restarts the pod when a particular key like in this case: BALANCE_SERVICE_CLIENT_SECRET changes. Not anything in the global-env-secret.
To Reproduce
- Create a deployment which depends upon a single secret key.
- Change any other key in the secrets. The pods will restart.
Expected behavior
- The pods should only restarts when their secret_key changes.
Describe the bug
In my deployment, i am referencing the secret:
If any key in the global-env-secret changes, it restarts the pods. It should only restarts the pod when a particular key like in this case: BALANCE_SERVICE_CLIENT_SECRET changes. Not anything in the global-env-secret.
To Reproduce
Expected behavior