Skip to content

Conversation

Silvenga
Copy link
Contributor

This pr adds the ability to opt-out of the default "only listen to resource changes while leader" functionality.

This is to handle cases where leadership is handled at a higher level or if instances still need to watch for resource events with not leading, for example,

  • Multiple replicas are deployed to a cluster. One instance is elected as a leader.
  • Each operator is configured to respond to webhook events (mutation or admission) based on the state of the cluster (since K8s does not have a built-in way to redirect traffic to only some pods).
  • For performance, each instance builds an internal cluster state that webhook events use for reference.

This should be a non-breaking change, since the default behavior is preserved.

@buehler buehler merged commit d02a3fc into dotnet:master May 25, 2022
@github-actions
Copy link

🎉 This PR is included in version 6.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Silvenga Silvenga deleted the optional-leadership branch May 25, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants