Skip to content

cassandradatacenter_types: allow 1length rack name#714

Draft
frivoire wants to merge 1 commit intok8ssandra:masterfrom
frivoire:patch-1
Draft

cassandradatacenter_types: allow 1length rack name#714
frivoire wants to merge 1 commit intok8ssandra:masterfrom
frivoire:patch-1

Conversation

@frivoire
Copy link
Copy Markdown

@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

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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