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

HOSTEDCP-1921: Remove unused CAPZ CRDs from HyperShift install #4618

Closed
wants to merge 1 commit into from

Conversation

bryan-cox
Copy link
Member

@bryan-cox bryan-cox commented Aug 27, 2024

What this PR does / why we need it:
Remove unused CAPZ managed related CRDs from the HyperShift install since those are not used in HyperShift.

Which issue(s) this PR fixes:
Fixes HOSTEDCP-1921

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

Remove unused CAPZ managed related CRDs from the HyperShift install
since those are not used in HyperShift.

Signed-off-by: Bryan Cox <brcox@redhat.com>
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 27, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Aug 27, 2024

@bryan-cox: This pull request references HOSTEDCP-1903 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.18.0" version, but no target version was set.

In response to this:

What this PR does / why we need it:
Remove unused CAPZ managed related CRDs from the HyperShift install since those are not used in HyperShift.

Which issue(s) this PR fixes:
Fixes HOSTEDCP-1903

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

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.

@openshift-ci openshift-ci bot added area/cli Indicates the PR includes changes for CLI and removed do-not-merge/needs-area labels Aug 27, 2024
Copy link
Contributor

openshift-ci bot commented Aug 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bryan-cox

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 Aug 27, 2024
@muraee
Copy link
Contributor

muraee commented Aug 27, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2024
@bryan-cox
Copy link
Member Author

/test all

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0cc82f7 and 2 for PR HEAD 83405e3 in total

@bryan-cox
Copy link
Member Author

/test all

2 similar comments
@bryan-cox
Copy link
Member Author

/test all

@bryan-cox
Copy link
Member Author

/test all

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0cc82f7 and 2 for PR HEAD 83405e3 in total

@bryan-cox
Copy link
Member Author

/retest

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 74077fb and 2 for PR HEAD 83405e3 in total

1 similar comment
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 74077fb and 2 for PR HEAD 83405e3 in total

@bryan-cox
Copy link
Member Author

/retest-required

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 74077fb and 2 for PR HEAD 83405e3 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD e5d525a and 1 for PR HEAD 83405e3 in total

@bryan-cox
Copy link
Member Author

/retest-required

@bryan-cox
Copy link
Member Author

e2e-aks is legitimately failing. I'll take a look into it today.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 533ec5d and 0 for PR HEAD 83405e3 in total

@bryan-cox
Copy link
Member Author

Looks like the error is related to this

E0828 10:05:27.972237       1 kind.go:63] "if kind is a CRD, it should be installed before calling Start" err="failed to get restmapping: no matches for kind \"AzureManagedControlPlane\" in group \"infrastructure.cluster.x-k8s.io\"" logger="controller-runtime.source.EventHandler" kind="AzureManagedControlPlane.infrastructure.cluster.x-k8s.io"

@muraee
Copy link
Contributor

muraee commented Aug 28, 2024

looks like we need to turn off MachinePool feature gate to deactivate those controllers.
https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/main.go#L427

@bryan-cox
Copy link
Member Author

looks like we need to turn off MachinePool feature gate to deactivate those controllers. https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/main.go#L427

Looks like we already turn that off -

@bryan-cox bryan-cox marked this pull request as draft August 28, 2024 14:59
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 28, 2024
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 533ec5d and 2 for PR HEAD 83405e3 in total

@bryan-cox
Copy link
Member Author

Moving this PR back to draft. This PR will be blocked for the moment. CAPZ is still registering the webhooks related to the CRDs even if the featuregate is disabled.

@bryan-cox bryan-cox changed the title HOSTEDCP-1903: Remove unused CAPZ CRDs from HyperShift install HOSTEDCP-1921: Remove unused CAPZ CRDs from HyperShift install Aug 28, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Aug 28, 2024

@bryan-cox: This pull request references HOSTEDCP-1921 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.18.0" version, but no target version was set.

In response to this:

What this PR does / why we need it:
Remove unused CAPZ managed related CRDs from the HyperShift install since those are not used in HyperShift.

Which issue(s) this PR fixes:
Fixes HOSTEDCP-1903

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

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.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Aug 28, 2024

@bryan-cox: This pull request references HOSTEDCP-1921 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.18.0" version, but no target version was set.

In response to this:

What this PR does / why we need it:
Remove unused CAPZ managed related CRDs from the HyperShift install since those are not used in HyperShift.

Which issue(s) this PR fixes:
Fixes HOSTEDCP-1921

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

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.

@bryan-cox
Copy link
Member Author

This is blocked from further progress until kubernetes-sigs/cluster-api-provider-azure#5099 is merged and HyperShift is updated to use the new CAPZ version including the fix.

Copy link
Contributor

openshift-ci bot commented Aug 28, 2024

@bryan-cox: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aks 83405e3 link true /test e2e-aks

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.

@bryan-cox
Copy link
Member Author

/close
Will reopen this PR when we can

@openshift-ci openshift-ci bot closed this Aug 28, 2024
Copy link
Contributor

openshift-ci bot commented Aug 28, 2024

@bryan-cox: Closed this PR.

In response to this:

/close
Will reopen this PR when we can

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.

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. area/cli Indicates the PR includes changes for CLI do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants