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

⚠️ Adapt clusterctl to the new manifests format #3988

Conversation

fabriziopandini
Copy link
Member

@fabriziopandini fabriziopandini commented Dec 3, 2020

What this PR does / why we need it:
Given that #3042 for v1alpha4 requires single controllers managing all namespaces, this PR removes from clusterctl all the code implemented for managing webhooks in a separated namespace.

NOTE: when we will implement v1alpha3 --> v1alpha4 upgrades, we should manage the proper cleanup of the webhook namespace as a special case (as well as other actions like converting the provider inventory according to the management cluster operator requirements).

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 3, 2020
@fabriziopandini fabriziopandini marked this pull request as draft December 3, 2020 21:37
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 3, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign fabriziopandini after the PR has been reviewed.
You can assign the PR to them by writing /assign @fabriziopandini in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from moshloop December 3, 2020 21:37
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 3, 2020
@fabriziopandini
Copy link
Member Author

/milestone v0.4.0

/hold
for #3985 to merge

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 3, 2020
@k8s-ci-robot k8s-ci-robot added this to the v0.4.0 milestone Dec 3, 2020
@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-cluster-api-test-main b8dc33e link /test pull-cluster-api-test-main

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.

@fabriziopandini
Copy link
Member Author

@vincepri @wfernandes
I'm eager to cleanup clusterctl code before the management cluster operator work start, but also I'm starting to think that this specific cleanup could prevent us to use clusterctl v0.4.x to create a v1alpha3 cluster, and this could make more complex testing upgrades.
So I'm leaning toward to punt on this cleanup. opinions?
I will open an issue to discuss other cleanups (e.g. removing support for management groups).

@vincepri
Copy link
Member

vincepri commented Dec 9, 2020

@fabriziopandini Shouldn't we download and use one of the latest releases of clusterctl on v0.3.x to generate v1alpha3 files?

@fabriziopandini
Copy link
Member Author

@vincepri in our E2E tests we are using clusterctl as a library for creating the management cluster, and if the library supports only v1alpha4 manifest it will be impossible to use our current machinery to test v1alpha3 --> v1alpha4

@wfernandes
Copy link
Contributor

to use clusterctl v0.4.x to create a v1alpha3 cluster

Hmm...I think i understand considering we have a non-goal in the caep to not support the installation of v1alpha3 providers using the operator and if clusterctl is going to be modified to rely on the operator, then the E2E cannot use clusterctl to deploy a v1a3 cluster.

Maybe instead we adapt the E2E framework to use a v1alpha3 manifest in test/e2e/data/v1alpha3 to deploy the cluster-api-components.yaml
And if we decide to do something like this we should do the above first before cleaning up clusterctl.

@fabriziopandini
Copy link
Member Author

/close
I'm going to open an issue to track this until we reach an agreement on how to make it possible to test v1alpha3 to v1alpha4

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: Closed this PR.

In response to this:

/close
I'm going to open an issue to track this until we reach an agreement on how to make it possible to test v1alpha3 to v1alpha4

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants