Prevent KafkaCluster from being stuck at ClusterReconciling on users' misconfigurations #971
Labels
community
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem Statement
When users configure listenersConfig in a way that it requires the server secret that contains the SSL certificates, but they neither provide the necessary secret nor tell the Koperator to create the secret, the
KafkaCluster
would be stuck atClusterReconciling
state and the users would be confused.Relevant
KafkaCluster
configurations that would cause this behavior:The above configurations would cause the Koperator to be stuck at this line:
https://github.com/banzaicloud/koperator/blob/master/pkg/resources/kafka/kafka.go#L610
Example logs:
Proposed Solution
The
KafkaCluster
validation webhook should reject suchKafkaCluster
creation and/or update requests.Alternatives Considered
N/A
Additional Context
N/A
The text was updated successfully, but these errors were encountered: