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

✨ Add kubeadm v1beta4 types #10709

Merged

Conversation

fabriziopandini
Copy link
Member

@fabriziopandini fabriziopandini commented May 31, 2024

What this PR does / why we need it:
Playing around this issue, still need to figure out some stuff

Which issue(s) this PR fixes:
Fixes #10708
Part of #10653

/area provider/bootstrap-kubeadm

@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. area/provider/bootstrap-kubeadm Issues or PRs related to CAPBK cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 31, 2024
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 31, 2024
@fabriziopandini fabriziopandini force-pushed the support-kubeadm-v1beta4-api branch from c905373 to a728ea1 Compare June 13, 2024 10:58
Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

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

Really nice work and clean implementation!

bootstrap/kubeadm/types/upstreamv1beta1/conversion_test.go Outdated Show resolved Hide resolved
bootstrap/kubeadm/types/upstreamv1beta4/conversion_test.go Outdated Show resolved Hide resolved
bootstrap/kubeadm/types/utils.go Outdated Show resolved Hide resolved
@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-main

@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-upgrade-1-30-1-31-main
(no idea if this could work :))

@kubernetes-sigs kubernetes-sigs deleted a comment from k8s-ci-robot Jun 14, 2024
@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-upgrade-1-30-1-31-main

@sbueringer
Copy link
Member

/test ?

@k8s-ci-robot
Copy link
Contributor

@sbueringer: The following commands are available to trigger required jobs:

  • /test pull-cluster-api-build-main
  • /test pull-cluster-api-e2e-blocking-main
  • /test pull-cluster-api-e2e-conformance-ci-latest-main
  • /test pull-cluster-api-e2e-conformance-main
  • /test pull-cluster-api-e2e-main
  • /test pull-cluster-api-e2e-mink8s-main
  • /test pull-cluster-api-e2e-upgrade-1-30-1-31-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

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-blocking-main
  • pull-cluster-api-test-main
  • pull-cluster-api-verify-main

In response to this:

/test ?

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.

@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-conformance-ci-latest-main
/test pull-cluster-api-e2e-conformance-main
/test pull-cluster-api-e2e-main
/test pull-cluster-api-e2e-mink8s-main
/test pull-cluster-api-e2e-upgrade-1-30-1-31-main

@sbueringer sbueringer mentioned this pull request Jun 17, 2024
15 tasks
@sbueringer
Copy link
Member

/cherry-pick release-1.7

(required for Kubernetes 1.31 support)

@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.7 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.7

(required for Kubernetes 1.31 support)

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.

@sbueringer sbueringer changed the title [WIP] ✨ add kubeadm v1beta4 types ✨ Add kubeadm v1beta4 types Jun 17, 2024
@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 Jun 17, 2024
@sbueringer sbueringer added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Jun 17, 2024
@sbueringer
Copy link
Member

sbueringer commented Jun 17, 2024

/hold

until all jobs are finished. Also want to see if main fails without this PR (with the merged kubeadm PR in k/k, xref: kubernetes/kubernetes#125029)

/assign @chrischdi

@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 Jun 17, 2024
@sbueringer sbueringer force-pushed the support-kubeadm-v1beta4-api branch from 675cbb6 to 9b3e4d9 Compare June 17, 2024 16:04
@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-conformance-ci-latest-main
/test pull-cluster-api-e2e-conformance-main
/test pull-cluster-api-e2e-main
/test pull-cluster-api-e2e-mink8s-main
/test pull-cluster-api-e2e-upgrade-1-30-1-31-main

@sbueringer
Copy link
Member

/lgtm
from my side

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 17, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d4aaaa312379a3f86c6e3949529a0fbf0057624d

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: 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 9b3e4d9 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.

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.

@chrischdi
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2024
@sbueringer
Copy link
Member

/hold cancel

periodics were green even without this change (just fyi)

@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 Jun 17, 2024
@k8s-ci-robot k8s-ci-robot merged commit dc88672 into kubernetes-sigs:main Jun 17, 2024
24 of 25 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.8 milestone Jun 17, 2024
@k8s-infra-cherrypick-robot

@sbueringer: #10709 failed to apply on top of branch "release-1.7":

Applying: Add kubeadm v1beta4 types
Applying: cleanup conversions for kubeadm v1beta1, v1beta2, v1beta3
Applying: Implement conversions for kubeadm v1beta4 types
Using index info to reconstruct a base tree...
M	Makefile
Falling back to patching base and 3-way merge...
Auto-merging Makefile
CONFLICT (content): Merge conflict in Makefile
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0003 Implement conversions for kubeadm v1beta4 types
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.7

(required for Kubernetes 1.31 support)

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.

sbueringer added a commit to sbueringer/cluster-api that referenced this pull request Jun 17, 2024
* Add kubeadm v1beta4 types

* cleanup conversions for kubeadm v1beta1, v1beta2, v1beta3

* Implement conversions for kubeadm v1beta4 types

* Handle Migration of ClusterConfiguration.APIServer.TimeoutForControlPlane to Init/JoinConfiguration.Timeouts.ControlPlaneComponentHealthCheck

* Handle Migration of JoinConfiguration.Discovery.Timeout to JoinConfiguration.Timeouts.TLSBootstrap

* Final alignment with kubeadm PR

* Address comments

* fix nit

---------

Co-authored-by: Stefan Bueringer <buringerst@vmware.com>
sbueringer added a commit to sbueringer/cluster-api that referenced this pull request Jun 18, 2024
* Add kubeadm v1beta4 types

* cleanup conversions for kubeadm v1beta1, v1beta2, v1beta3

* Implement conversions for kubeadm v1beta4 types

* Handle Migration of ClusterConfiguration.APIServer.TimeoutForControlPlane to Init/JoinConfiguration.Timeouts.ControlPlaneComponentHealthCheck

* Handle Migration of JoinConfiguration.Discovery.Timeout to JoinConfiguration.Timeouts.TLSBootstrap

* Final alignment with kubeadm PR

* Address comments

* fix nit

---------

Co-authored-by: Stefan Bueringer <buringerst@vmware.com>
sbueringer added a commit to sbueringer/cluster-api that referenced this pull request Jun 18, 2024
* Add kubeadm v1beta4 types

* cleanup conversions for kubeadm v1beta1, v1beta2, v1beta3

* Implement conversions for kubeadm v1beta4 types

* Handle Migration of ClusterConfiguration.APIServer.TimeoutForControlPlane to Init/JoinConfiguration.Timeouts.ControlPlaneComponentHealthCheck

* Handle Migration of JoinConfiguration.Discovery.Timeout to JoinConfiguration.Timeouts.TLSBootstrap

* Final alignment with kubeadm PR

* Address comments

* fix nit

---------

Co-authored-by: Stefan Bueringer <buringerst@vmware.com>
@fabriziopandini fabriziopandini deleted the support-kubeadm-v1beta4-api branch June 24, 2024 11:45
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/provider/bootstrap-kubeadm Issues or PRs related to CAPBK 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement support for kubeadm v1beta4 API
6 participants