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

feat: new cluster topology and component version API #6582

Merged
merged 59 commits into from
Mar 17, 2024

Conversation

leon-inf
Copy link
Contributor

@leon-inf leon-inf commented Feb 2, 2024

No description provided.

apis/apps/v1alpha1/componentversion_types.go Outdated Show resolved Hide resolved
}

if !validate(topology.Orders.StartupOrder) {
return fmt.Errorf("the components in startup order are different from those from definition")
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's a question here: according to this validation rule, the components defined in StartupOrder/ShutdownOrder/UpdateOrder must completely cover topology.Components. Is this expected? What if the user only expects some of the components to have dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the expected behavior is to either specify no components or all components, this is the simplest and most accurate strategy.

@leon-inf leon-inf force-pushed the feature/new-cluster-and-version-api branch from 0f1f4b0 to cab0202 Compare March 11, 2024 02:16
@leon-inf
Copy link
Contributor Author

/approve

@apecloud-bot apecloud-bot added the approved PR Approved Test label Mar 17, 2024
@leon-inf leon-inf merged commit bdc693a into main Mar 17, 2024
80 checks passed
@leon-inf leon-inf deleted the feature/new-cluster-and-version-api branch March 17, 2024 07:34
@github-actions github-actions bot added this to the Release 0.8.2 milestone Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR Approved Test feature size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants