Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure-keyvault-controller: restrict Kubernetes event generation to changes #604

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

erdeiattila
Copy link
Contributor

Currently, a Kubernetes event is generated for each object at every sync loop in the controller. Events are generated even when there is no difference between the secret in Azure Key Vault and content of the secret/configMap. This means that with a high number of secrets, a storm of events are sent to the cluster at every sync loop.

This PR reshuffles the event generation a little, so events are only generated if there is an update to the secret because of a change in the Key Vault secret, or if a secret/configMap object is created or modified.

The reasoning is that there is no need for such a high number of events to be sent, and that Kubernetes events should denote a state change in the system.

Copy link
Collaborator

@181192 181192 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😌

@181192 181192 merged commit 6ddfeee into SparebankenVest:master Oct 1, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants