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

Deprecate infrastructure ref #542

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anmazzotti
Copy link
Contributor

@anmazzotti anmazzotti commented Jan 6, 2025

kind/feature
kind/bug

What this PR does / why we need it:

This is a (dirty) attempt of using the v1beta1 newly added RKE2ControlPlane.Spec.MachineTemplate.InfrastructureRef and fixes the API to be used properly with ClusterClass.

Note that this counts as an API change, however this is an attempt of getting away with it without a version bump.
The controlplane controller tries to catch and patch all missed conversions for this reason.

Also note that this PR assumes that v1beta1 RKE2ControlPlane.Spec.MachineTemplate.InfrastructureRef and RKE2ControlPlane.Spec.InfrastructureRef are equal. However since the former is currently ignored, it is not guaranteed that they will match.

Still a draft, missing proper testing and test coverage.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #341

Special notes for your reviewer:

Checklist:

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

@kkaempf kkaempf added kind/enhancement kind/bug Something isn't working area/clusterclass Issues or PRs related to clusterclass and removed kind/enhancement labels Jan 7, 2025
@anmazzotti anmazzotti force-pushed the deprecate_infrastructure_ref branch 3 times, most recently from cd38c61 to d6c1173 Compare January 7, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/clusterclass Issues or PRs related to clusterclass kind/bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

Can not create Cluster from Cluster Class without repeating KCP's infrastructureRef
2 participants