-
Notifications
You must be signed in to change notification settings - Fork 37
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
METAL-966: Add support for metal3 #175
base: main
Are you sure you want to change the base?
Conversation
@honza: This pull request references METAL-966 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.17.0" version, but no target version was set. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
2d6320e
to
3e68300
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @honza the changes you are adding here look reasonable to me.
Although we recently merged #169 which slightly changes how we handle InfraCluster generation for each platform, and moves some of the switch/case around, would you be able to adapt this PR to that change?
Before merging this PR we would need to add e2e tests (similarly to what we already do with powervs/gcp/vsphere in this repo), which will require to us to get openshift/cluster-api-provider-metal3#18 merged first
8d95a47
to
ff1c497
Compare
410528e
to
5eed1ef
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dtantsur The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bd716a1
to
1399782
Compare
ef1f476
to
1fc88f7
Compare
d42a084
to
72cebea
Compare
We have started working on a CI job here: openshift/release#58839 |
Amazing news @honza thanks! |
Hi folks! Do you envision this change landing before the 4.18 branching? |
8017bd7
to
d61d7f1
Compare
Hey @dtantsur Also I think we should get this retitled to Also it would be best to have e2e presubmits passing on this PR before merging it. |
/test e2e-metal3-capi-techpreview |
2e6341b
to
b168d2c
Compare
/test e2e-metal3-capi-techpreview |
1 similar comment
/test e2e-metal3-capi-techpreview |
502eca1
to
f5fbe4f
Compare
/test e2e-metal3-capi-techpreview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of quite important things for which we should create a follow up PR in the coming days.
For now I think it could be ok to merge if @JoelSpeed is also happy with it, but we should make sure we fix them ASAP.
@@ -19,6 +19,7 @@ type machineSetParams struct { | |||
failureDomain string | |||
replicas int32 | |||
infrastructureRef corev1.ObjectReference | |||
UserDataSecret string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably have been unexported like the rest of the fields in this struct. But we can fix it in a followup PR I guess, if we are in a rush.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed; I wanted to avoid changing every call site. Happy to fix it in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are, including this PR, around 5 call sites, I'd prefer we just get that updated, rather than putting this off for the future
apiVersion: cloudcredential.openshift.io/v1 | ||
kind: Metal3ProviderSpec | ||
secretRef: | ||
name: capv-manager-bootstrap-credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs changing as it conflicts with capv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it doesn't break payload because it is on different platforms that will never encounter eachother.
We might want to rename (and tombstone?) cc. @JoelSpeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it doesn't break payload because it is on different platforms that will never encounter eachother.
We have plans in the future to allow multiple platforms to be installed, so, this would then conflict. Names must be unique, so this needs to be fixed
case configv1.BareMetalPlatformType: | ||
baremetalCluster := &metal3v1.Metal3Cluster{} | ||
if err := r.Get(ctx, client.ObjectKey{Namespace: defaultCAPINamespace, Name: r.Infra.Status.InfrastructureName}, baremetalCluster); err != nil && !kerrors.IsNotFound(err) { | ||
return nil, fmt.Errorf("error getting InfraCluster object: %w", err) | ||
} | ||
|
||
infraCluster = baremetalCluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need changing once we introduce the BareMetalCluster generation via this controller. In a followup PR if possible @honza, thank you!
57ed1ad
to
a6da96c
Compare
@honza: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
No description provided.