Skip to content

[BUG] Reloader restart the pods even when the pods are not dependent on that particular secret_key #1115

@kshitij-cyara

Description

@kshitij-cyara

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

  1. Create a deployment which depends upon a single secret key.
  2. Change any other key in the secrets. The pods will restart.

Expected behavior

  1. The pods should only restarts when their secret_key changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions