-
Notifications
You must be signed in to change notification settings - Fork 580
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
✨ Rosa machinepools #4686
✨ Rosa machinepools #4686
Conversation
- add new cluster template for ROSA clusters
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
59321d0
to
ca91b40
Compare
This commit introduces several improvements to the rosa control plane: - Add ROSAControlPlaneReadyCondition - Add helpers for ocmclient - Add WorkerRoleARN field to the API to satisfy latest ocm API requirements
ca91b40
to
a1b713b
Compare
This introduces basic support to create/delete ROSAMachinePools Lifecycle is captured in ROSAMachinePoolReadyCondition
a1b713b
to
b46805b
Compare
/test pull-cluster-api-provider-aws-test |
@enxebre: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
@@ -170,7 +173,7 @@ func (r *ROSAControlPlaneReconciler) reconcileNormal(ctx context.Context, rosaSc | |||
|
|||
// Create the cluster: | |||
clusterBuilder := cmv1.NewCluster(). | |||
Name(rosaScope.ControlPlane.Name). | |||
Name(rosaScope.ControlPlane.Name[:15]). |
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.
Is there a better way to achieve this? Maybe a hash?
if cluster.ID() != "" { | ||
clusterID := cluster.ID() |
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.
if cluster.ID() != "" { | |
clusterID := cluster.ID() | |
if clusterID := cluster.ID(); clusterID != "" { |
} | ||
|
||
func (client *OCMClient) GetCluster(rosaScope *scope.ROSAControlPlaneScope) (*cmv1.Cluster, error) { | ||
clusterKey := rosaScope.ControlPlane.Name[:15] |
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.
Same as above, could we do this somewhere else?
func (r *ROSAControlPlaneReconciler) getOcmCluster(rosaScope *scope.ROSAControlPlaneScope, ocmConnection *sdk.Connection) (*cmv1.Cluster, error) { | ||
clusterKey := rosaScope.ControlPlane.Name | ||
// OCMClient is a temporary helper to talk to OCM API. | ||
// TODO(alberto): vendor this from https://github.com/openshift/rosa/tree/master/pkg/ocm or build its own package here. |
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.
Is this vendorable? Why have we decided not to import it today?
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.
We would have to vendor the complete rosa cli repo https://github.com/openshift/rosa, I don't think it is possible to only import the ocm package
/close |
@vincepri: Closed this PR. 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 kubernetes/test-infra repository. |
What type of PR is this?
Add initial support for ROSAMachinePools
Includes #4665
What this PR does / why we need it:
This PR introduces basic support to create/delete ROSAMachinePools
It also add several improvements to the rosa control plane to get cluster creation functional:
- Add ROSAControlPlaneReadyCondition
- Add helpers for ocmclient
- Add WorkerRoleARN field to the API to satisfy latest ocm API requirements
Sample:
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 #4429
Special notes for your reviewer:
Checklist:
Release note: