You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps did you take and what happened:
When updating a secretsync, the controller will not re-reconcile a secret on an update.
What did you expect to happen:
I expected the controller to re-reconcile if the secretsync is updated.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.] shouldReconcilePredicate is called and then calls processIfSecretChanged which always returns false because the syncHash is never updated.
Proposed solution is to return true in shouldReconcilePredicate in the case of an UpdateEvent and not call processIfSecretChanged
Which provider are you using:
[e.g. Azure Key Vault, HashiCorp Vault, etc. Have you checked out the provider's repo for more help?]
Environment:
Secrets Store Sync Controller version: (use the image tag):
Kubernetes version: (use kubectl version):
The text was updated successfully, but these errors were encountered:
We can either always reconcile on the update or we can separate out the logic for calculating the hash in the reconcile function and then also call it in the shouldReconcile function to calculate the hash of the new object.
What steps did you take and what happened:
When updating a secretsync, the controller will not re-reconcile a secret on an update.
What did you expect to happen:
I expected the controller to re-reconcile if the secretsync is updated.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
shouldReconcilePredicate
is called and then callsprocessIfSecretChanged
which always returns false because thesyncHash
is never updated.Proposed solution is to return true in
shouldReconcilePredicate
in the case of anUpdateEvent
and not callprocessIfSecretChanged
Which provider are you using:
[e.g. Azure Key Vault, HashiCorp Vault, etc. Have you checked out the provider's repo for more help?]
Environment:
kubectl version
):The text was updated successfully, but these errors were encountered: