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

Support hcd #1319

Merged
merged 3 commits into from
May 23, 2024
Merged

Support hcd #1319

merged 3 commits into from
May 23, 2024

Conversation

adejanovski
Copy link
Contributor

@adejanovski adejanovski commented May 22, 2024

What this PR does:
Adds support for HCD as server type and remove the regex checks for server versions which already exist in cass-operator.

Fixes #1320

Checklist

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

@adejanovski adejanovski marked this pull request as ready for review May 22, 2024 12:54
@adejanovski adejanovski requested a review from a team as a code owner May 22, 2024 12:54
return float64(256)
}
if kc.Spec.Cassandra.ServerType.IsCassandra() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this breaking backwards compatibility? 16 is the default for OSS versions and all previous deployments would use that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, and I shouldn't have touched this anyway here.

@@ -10258,7 +10258,7 @@ spec:
ServerVersion is the Cassandra or DSE version. The following versions are supported:
- Cassandra: 3.11.X, 4.X.X and 5.X.X
- DSE: 6.8.X, 7.x.x
pattern: (6\.8\.\d+)|(3\.11\.\d+)|(4\.\d+\.\d+)|(5\.\d+\.\d+)|(7\.\d+\.\d+)
- HCD: 1.0.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: We shouldn't remove pattern entirely, it should be at least something like \d+\.\d+\.\d+. We're not supporting versions like 6.9 that would auto-update to newest point-release for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough 👍

@adejanovski
Copy link
Contributor Author

@burmanm , I addressed your comments. Could you review again?

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@adejanovski adejanovski merged commit 77763d2 into main May 23, 2024
60 checks passed
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.

Add support for HCD
2 participants