Update Synced kubernetes native secret as well after a pod restart #1566
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Describe the solution you'd like
Currently when a pod is restarted the secret value in the volume mounts inside the pod get updated, but the synced native secret does not get updated. The code shows only a create a option for the native secret and there is no update. Each time the synced native secret needs to be updated, it needs to be deleted before the pod restart. A solution is required to update the synced secret as well after the pod restart.
Anything else you would like to add:
There is no else condition here,
https://github.com/kubernetes-sigs/secrets-store-csi-driver/blob/main/controllers/secretproviderclasspodstatus_controller.go#L312
Is this an intended behavior since the controller will not be able to find out accurately as to who/which system created this secret if it already exists?
Environment:
The text was updated successfully, but these errors were encountered: