Ansible/Helm new layouts should work with controller-runtime leader election #3356
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
kubebuilder-integration
Relates to rewriting the SDK in Kubebuilder plugin form
language/ansible
Issue is related to an Ansible operator project
language/helm
Issue is related to a Helm operator project
Milestone
Feature Request
The new helm layout is working with the current/legacy image of the operator-sdk helm. This image is not using the controller-runtime implementation for the leader election.
We need to:
cmd/helm|ansible-operator/main.go
which is used to generate bin. See: [ansible/helm] remove operator-sdk binary from ansible/helm base images #3331internal/plugins/helm/v1/scaffolds/templates/metricsauth/auth_proxy_patch.go
) to use the enableLeaderElection flag. See: https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugin/v3/scaffolds/internal/templates/metricsauth/auth_proxy_patch.go#L68-L70The text was updated successfully, but these errors were encountered: