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

Drop ExternalInfraCluster CRD in favour of AWSCluster #272

Merged

Conversation

enxebre
Copy link
Member

@enxebre enxebre commented Jun 1, 2021

This PR drops the ExternalInfraCluster CRD in favour of AWSCluster.

Originally we added support for externally managed infra in CAPA via the ExternalInfraCluster CRD kubernetes-sigs/cluster-api-provider-aws#2124 and we used that commit of CAPA in hypershift.

Later on we decided to revert that approach upstream and reuse the existing ${infra}Cluster CRDs with an annotation to support externally managed infrastructure kubernetes-sigs/cluster-api#4135

This PR bring latest CAPI/CAPA.

As a follow up we need to rebuild the images and consume them from quay.io/hypershift.

@enxebre
Copy link
Member Author

enxebre commented Jun 1, 2021

/test e2e-aws

@openshift-ci openshift-ci bot requested review from csrwng and ironcladlou June 1, 2021 14:13
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2021
@enxebre
Copy link
Member Author

enxebre commented Jun 1, 2021

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 1, 2021
@enxebre
Copy link
Member Author

enxebre commented Jun 1, 2021

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 1, 2021
return reconcile.Result{}, err
}

awsCluster := controlplaneoperator.ExternalInfraCluster(controlPlaneNamespace.Name, hcluster.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

should this only happen when Platform.Type == "AWS" ? Also s/ExternalInfraCluster/AWSCluster/
do we still create/reconcile an AWSCluster when Platform.Type == "None"?

Copy link
Member Author

@enxebre enxebre Jun 1, 2021

Choose a reason for hiding this comment

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

should this only happen when Platform.Type == "AWS

yes.

do we still create/reconcile an AWSCluster when Platform.Type == "None"?

No. Each provider must have their own infraCluster CR.

Let me update.

@enxebre enxebre force-pushed the aws-external-infra-clean branch from 9e928c1 to c579830 Compare June 2, 2021 09:49
@enxebre
Copy link
Member Author

enxebre commented Jun 2, 2021

/test e2e-aws

1 similar comment
@enxebre
Copy link
Member Author

enxebre commented Jun 2, 2021

/test e2e-aws

@enxebre enxebre force-pushed the aws-external-infra-clean branch from c579830 to 8f6e5fa Compare June 2, 2021 14:35
@enxebre
Copy link
Member Author

enxebre commented Jun 2, 2021

Rebased after #269
/test e2e-aws

@enxebre
Copy link
Member Author

enxebre commented Jun 2, 2021

/hold
to wait for e2e

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 2, 2021
This PR drops the ExternalInfraCluster CRD in favour of AWSCluster.

Originally we added support for externally managed infra in CAPA via the ExternalInfraCluster CRD kubernetes-sigs/cluster-api-provider-aws#2124 and we used that commit of CAPA in hypershift.

Later on we decided to revert that approach upstream and reuse the existing ${infra}Cluster CRDs with an annotation to support externally managed infrastructure kubernetes-sigs/cluster-api#4135

This PR bring latest CAPI/CAPA.

As a follow up we need to rebuild the images and consume them from quay.io/hypershift.
@enxebre enxebre force-pushed the aws-external-infra-clean branch from 8f6e5fa to 0ef36e1 Compare June 2, 2021 15:47
@enxebre
Copy link
Member Author

enxebre commented Jun 2, 2021

Pushed changes so as discussed we'll run the aws controllers for platform None for now.
https://github.com/openshift/hypershift/pull/272/files#diff-b5cde720842b19b53da3f454d827e27327c4559b2e4849906dac728586f51eb3R356-R358
/test e2e-aws

@enxebre
Copy link
Member Author

enxebre commented Jun 3, 2021

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 3, 2021
@ironcladlou
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 3, 2021
@openshift-merge-robot openshift-merge-robot merged commit 64958e3 into openshift:main Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants