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

[WIP] 🌱 feat: ClusterClass - add RKE2ControlPlaneTemplate #226

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Dec 27, 2023

What this PR does / why we need it:

This PR adds RKE2ControlPlaneTemplate, which will be used by ClusterClass. It also includes a quick start example to create a sample ClusterClass and a workload Cluster based on it.

Which issue(s) this PR fixes:
Fixes #75

Special notes for your reviewer:

The example ClusterClass makes use of the new configurable bootstrap timeout in CAPD, which is pending merge here. The default timeout is set to 3m, which is sometimes not enough for machine to be provisioned.

Supporting ClusterClass meant extra fields had to be added to RKE2ControlPlaneSpec, including Version. Since the provider already has a Version field in RKE2AgentConfigSpec, there's a follow up issue, #229, to track work on addressing how these fields are managed, with the goal of deprecating RKE2AgentConfigSpec.Version in a future API version.

For now, only the existing RKE2AgentConfigSpec.Version is supported and the new RKE2ControlPlaneSpec.Version is only a placeholder to support using ClusterClass. A following PR will add the changes to support either of the two fields but not both.

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@salasberryfin salasberryfin added the kind/feature New feature or request label Dec 27, 2023
@salasberryfin salasberryfin force-pushed the feat-add-support-for-clusterclass branch 3 times, most recently from 6ae2aea to 9d088be Compare January 2, 2024 17:00
@salasberryfin salasberryfin force-pushed the feat-add-support-for-clusterclass branch 2 times, most recently from 9d14d35 to 252f22f Compare January 4, 2024 15:33
@salasberryfin salasberryfin force-pushed the feat-add-support-for-clusterclass branch 2 times, most recently from f424608 to adfd89e Compare January 5, 2024 10:43
@salasberryfin salasberryfin force-pushed the feat-add-support-for-clusterclass branch from adfd89e to c49b579 Compare January 5, 2024 10:47
@salasberryfin salasberryfin requested a review from a team January 5, 2024 10:49
@salasberryfin salasberryfin changed the title WIP: feat: ClusterClass - add RKE2ControlPlaneTemplate feat: ClusterClass - add RKE2ControlPlaneTemplate Jan 5, 2024
@salasberryfin salasberryfin changed the title feat: ClusterClass - add RKE2ControlPlaneTemplate 🌱 feat: ClusterClass - add RKE2ControlPlaneTemplate Jan 5, 2024
@salasberryfin salasberryfin changed the title 🌱 feat: ClusterClass - add RKE2ControlPlaneTemplate [WIP] 🌱 feat: ClusterClass - add RKE2ControlPlaneTemplate Jan 8, 2024
@salasberryfin
Copy link
Contributor Author

We'll be editing these changes to be added to the new API version v1beta1.

@salasberryfin salasberryfin mentioned this pull request Jan 8, 2024
4 tasks
@salasberryfin
Copy link
Contributor Author

We can wait for a new CAPI release that includes the configurable bootstrap timeout in CAPD.

@salasberryfin
Copy link
Contributor Author

This PR is superseded by #261, which moves this feature to v1beta1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ClusterClass support
1 participant