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

[CC-30768] don't allow node_count for serverless cluster #255

Conversation

fantapop
Copy link
Collaborator

@fantapop fantapop commented Dec 7, 2024

Previously it was possible to pass in the node_count value for serverless region because the type is shared with dedicated clusters. This ended up causing a state inconsistency however becase node_count is coerced to 0 by the api which conflicts with a value added in the config. To solve this, we simply validate that node_count is not used unless cluster plan is Advanced.

Commit checklist

  • Changelog
  • Doc gen (make generate)
  • Integration test(s)
  • Acceptance test(s)
  • Example(s)

@fantapop fantapop requested review from rgcase and kathancox December 7, 2024 00:07
@@ -113,7 +113,7 @@ Required:

Optional:

- `node_count` (Number) Number of nodes in the region. Will always be 0 for serverless clusters.
- `node_count` (Number) Number of nodes in the region. Valid for Advance clusters only.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kathancox this one should be pretty straightforward. Just this line to check. Thank you!

Previously it was possible to pass in the node_count value for
serverless region because the type is shared with dedicated clusters.
This ended up causing a state inconsistency however becase node_count is
coerced to 0 by the api which conflicts with a value added in the
config. To solve this, we simply validate that node_count is not used
unless cluster plan is Advanced.
@fantapop fantapop force-pushed the fantapop/CC-30768-passing-node-count-for-standard-tier-clusters-results-in-state-inconsistency branch from 959296d to 49c790a Compare December 7, 2024 00:11
@fantapop fantapop merged commit a2c6d2f into main Dec 9, 2024
4 checks passed
@fantapop fantapop deleted the fantapop/CC-30768-passing-node-count-for-standard-tier-clusters-results-in-state-inconsistency branch December 9, 2024 17:45
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.

3 participants