Skip to content
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

cassandradatacenter_types: allow 1length rack name #714

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frivoire
Copy link

@frivoire frivoire commented Oct 9, 2024

What this PR does: allow more flexibility in the naming of rack by allowing names with only 1char.

Rationale: on cloud-environments (ex: when using GoogleCloudSnitch for my use-case) & using the simple mapping: datacenter=cloudProvider-region & rack=cloudProvider-zone, we want to define just a, b, c as rack name, which is not possible today.
AFAIK, this is mainly impacting when we have some existing clusters (created outside of the operator, with 1long rack names) and we want to migrate to the operator (using the same rack-name for a safe migration)

NB: the reason for this "min 2" is unclear to me, I only found the commit that introduced it but no explanation

Which issue(s) this PR fixes: no issue created

Checklist

  • Changes manually tested => nothing tested 😆
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

Copy link

github-actions bot commented Oct 9, 2024

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@burmanm
Copy link
Contributor

burmanm commented Oct 15, 2024

Hey, thanks for the PR. I'll try to investigate if there was a reason why the restriction was 2.

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.

2 participants