-
Notifications
You must be signed in to change notification settings - Fork 71
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
Pods not found when using a mixed-case datacenterName #1252
Comments
I think I poo-pooed here when using the sanitized name for the labels :( |
I filed k8ssandra/cass-operator#622. |
Actually we still need to sanitize the name in k8ssandra-operator, so this gets its own PR. |
isn't in this particular case (the line of the code) simply taking wrong field ? instead of "datacenterName()" it should take "Name" (which complies with k8s rules) and cass-operator uses for the label ? |
Given this spec:
The cluster errors out with:
This is because cass-operator sanitizes the Cassandra pod's DC label with
CleanupForKubernetes
(no caps, no underscores):But k8ssandra-operator uses the unsanitized version to build its selector:
We need to use the same sanitization function in k8ssandra-operator.
We should also consider switching to
CleanLabelValue()
in both operators, because this is what cass-operator uses for the cluster and rack labels. Right now we have inconsistent formats:Blocked by
The text was updated successfully, but these errors were encountered: