Skip to content

⚠️ Remove redundant/unused KCPTemplate fields#5788

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
sbueringer:pr-deprecate-redundant-kcp-fields
Dec 9, 2021
Merged

⚠️ Remove redundant/unused KCPTemplate fields#5788
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
sbueringer:pr-deprecate-redundant-kcp-fields

Conversation

@sbueringer
Copy link
Member

@sbueringer sbueringer commented Dec 3, 2021

Signed-off-by: Stefan Büringer buringerst@vmware.com

What this PR does / why we need it:

This PR proposes a solution to implement: #5678

Please see #5788 (comment) for the options we have and further discussions

Note:

  • Follow-up if this PR is merged: drop redundant fields in CAPA quickstart e2e test.

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 #5678

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 3, 2021
@sbueringer sbueringer force-pushed the pr-deprecate-redundant-kcp-fields branch from e42292d to 6d08be0 Compare December 6, 2021 14:58
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 6, 2021
@sbueringer sbueringer force-pushed the pr-deprecate-redundant-kcp-fields branch 3 times, most recently from d6fcea8 to 3e15512 Compare December 6, 2021 15:55
@sbueringer sbueringer changed the title [WIP] ⚠️ Deprecate redundant KCPTemplate fields ⚠️ Deprecate redundant KCPTemplate fields Dec 6, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 6, 2021
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 6, 2021
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@sbueringer sbueringer force-pushed the pr-deprecate-redundant-kcp-fields branch from 5ceb9c8 to d27574c Compare December 6, 2021 18:08
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 6, 2021
@vincepri
Copy link
Member

vincepri commented Dec 6, 2021

/retitle ⚠️ Remove redundant/unused KCPTemplate fields

@k8s-ci-robot k8s-ci-robot changed the title ⚠️ Deprecate redundant KCPTemplate fields ⚠️ Remove redundant/unused KCPTemplate fields Dec 6, 2021
@vincepri
Copy link
Member

vincepri commented Dec 6, 2021

/lgtm
/assign @CecileRobertMichon

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 6, 2021
@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 8, 2021
@sbueringer sbueringer force-pushed the pr-deprecate-redundant-kcp-fields branch from 40122c1 to b9982ca Compare December 8, 2021 20:28
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

// MachineTemplate contains information about how machines
// should be shaped when creating or updating a control plane.
// +optional
MachineTemplate *KubeadmControlPlaneTemplateMachineTemplate `json:"machineTemplate,omitempty"`
Copy link
Member Author

@sbueringer sbueringer Dec 8, 2021

Choose a reason for hiding this comment

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

@vincepri @CecileRobertMichon

I did another manual test. This time I tried not setting machineTemplate at all, so I noticed that machineTemplate was still mandatory. (the CI test sets machineTemplate.nodeDrainTimeout to speed up the test)

I think we shouldn't force users to specify an empty machineTemplate object, so I made it optional

Copy link
Contributor

Choose a reason for hiding this comment

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

/lgtm

Signed-off-by: Stefan Büringer buringerst@vmware.com
@sbueringer sbueringer force-pushed the pr-deprecate-redundant-kcp-fields branch from b9982ca to 0f7e22d Compare December 8, 2021 20:33
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-full-main
unrelated flake

Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

ready to lgtm approve as soon as we get a green CI

apiconversion "k8s.io/apimachinery/pkg/conversion"
"sigs.k8s.io/controller-runtime/pkg/conversion"

kubeadmbootstrapv1alpha4 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha4"
Copy link
Member

Choose a reason for hiding this comment

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

nit we are kind of standardizing on boostrapvx, but we can eventually tackle this is a separated PR

Suggested change
kubeadmbootstrapv1alpha4 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha4"
bootstrapv1alpha4 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha4"

Copy link
Member Author

@sbueringer sbueringer Dec 8, 2021

Choose a reason for hiding this comment

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

Yup. I'll take a look tomorrow (in a separate PR)

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 8, 2021
@sbueringer
Copy link
Member Author

@fabriziopandini Should be ready for merge now

@fabriziopandini
Copy link
Member

/hold cancel
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 9, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon, fabriziopandini

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

The pull request process is described here

Details 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
Copy link
Contributor

k8s-ci-robot commented Dec 9, 2021

@sbueringer: 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
pull-cluster-api-apidiff-main 0f7e22d link false /test pull-cluster-api-apidiff-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.

Details

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.

@sbueringer
Copy link
Member Author

flake
/test
pull-cluster-api-test-mink8s-main

@k8s-ci-robot
Copy link
Contributor

@sbueringer: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test pull-cluster-api-build-main
  • /test pull-cluster-api-e2e-main
  • /test pull-cluster-api-test-main
  • /test pull-cluster-api-test-mink8s-main
  • /test pull-cluster-api-verify-main

The following commands are available to trigger optional jobs:

  • /test pull-cluster-api-apidiff-main
  • /test pull-cluster-api-e2e-full-main
  • /test pull-cluster-api-e2e-informing-ipv6-main
  • /test pull-cluster-api-e2e-informing-main
  • /test pull-cluster-api-e2e-workload-upgrade-1-23-latest-main
  • /test pull-cluster-api-make-main

Use /test all to run the following jobs that were automatically triggered:

  • pull-cluster-api-apidiff-main
  • pull-cluster-api-build-main
  • pull-cluster-api-e2e-informing-ipv6-main
  • pull-cluster-api-e2e-informing-main
  • pull-cluster-api-e2e-main
  • pull-cluster-api-test-main
  • pull-cluster-api-test-mink8s-main
  • pull-cluster-api-verify-main
Details

In response to this:

flake
/test
pull-cluster-api-test-mink8s-main

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.

@sbueringer
Copy link
Member Author

/test pull-cluster-api-test-mink8s-main

@k8s-ci-robot k8s-ci-robot merged commit e889246 into kubernetes-sigs:main Dec 9, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.1 milestone Dec 9, 2021
@sbueringer sbueringer deleted the pr-deprecate-redundant-kcp-fields branch December 9, 2021 13:28
sbueringer pushed a commit to sbueringer/cluster-api that referenced this pull request Dec 9, 2021
…redundant-kcp-fields

⚠️ Remove redundant/unused KCPTemplate fields
sbueringer pushed a commit to sbueringer/cluster-api that referenced this pull request Dec 9, 2021
…redundant-kcp-fields

⚠️ Remove redundant/unused KCPTemplate fields
erkanerol pushed a commit to giantswarm/cluster-openstack that referenced this pull request Feb 7, 2022
…rClass

machineTemplate in KubeadmControlPlaneTemplate is removed with CAPI v1.1.0
See kubernetes-sigs/cluster-api#5788

We need to move that part to clusterClass
erkanerol pushed a commit to giantswarm/cluster-openstack that referenced this pull request Feb 7, 2022
…rClass

machineTemplate in KubeadmControlPlaneTemplate is removed with CAPI v1.1.0
See kubernetes-sigs/cluster-api#5788

We need to move that part to clusterClass
erkanerol pushed a commit to giantswarm/cluster-openstack that referenced this pull request Feb 7, 2022
…rClass

machineTemplate in KubeadmControlPlaneTemplate is removed with CAPI v1.1.0
See kubernetes-sigs/cluster-api#5788

We need to move that part to clusterClass
erkanerol added a commit to giantswarm/cluster-openstack that referenced this pull request Feb 7, 2022
…rClass (#46)

* Move machineInfrastructure from KubeadmControlPlaneTemplate to ClusterClass

machineTemplate in KubeadmControlPlaneTemplate is removed with CAPI v1.1.0
See kubernetes-sigs/cluster-api#5788

We need to move that part to clusterClass.

Co-authored-by: Thomas Fussell <thomas@giantswarm.io>
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

Drop topology managed fields from KubeadmControlPlaneTemplate

5 participants