Skip to content

Conversation

@pascaliske
Copy link

Currently, when the operator is deployed into a custom namespace the leader election does not work because of a hard-coded default value for the LeaderElectionNamespace:

flag.StringVar(&clusterResourceNamespace, "cluster-resource-namespace", "cloudflare-operator-system", "The default namespace for cluster scoped resources.")

In fact the Kubebuilder book FAQs recommend to set the field only in non-cluster deployments for development purposes: https://book.kubebuilder.io/faq#after-make-run-i-see-errors-like-unable-to-find-leader-election-namespace-not-running-in-cluster

As an easy fix the default value could be removed.

…m namespace

Signed-off-by: Pascal Iske <info@pascaliske.dev>
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.

1 participant