cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

:sparkles: Add CertificateValidityPeriod and CACertificateValidityPeriod to KubeadmConfig

Open Karthik-K-N opened this issue 7 months ago • 10 comments

What this PR does / why we need it:

Adds CertificateValidityPeriod and CACertificateValidityPeriod to KubeadmConfig

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

/area provider/bootstrap-kubeadm

Karthik-K-N avatar Jun 09 '25 17:06 Karthik-K-N

/hold

Added CertificateValidityPeriod to KubeadmConfig if the changes (especially conversions) are in right direction will do the similar changes for CACertificateValidityPeriod as well.

@sbueringer Please let me know your opinion. Thanks.

Karthik-K-N avatar Jun 09 '25 17:06 Karthik-K-N

Added both the fields, Need to make changes to honor those fields while generating CA.

Karthik-K-N avatar Jun 11 '25 14:06 Karthik-K-N

@Karthik-K-N Sorry can you rebase again? I think now we got all PRs merged for now. I'll look into the PR afterwards

sbueringer avatar Jun 11 '25 18:06 sbueringer

@Karthik-K-N Sorry can you rebase again? I think now we got all PRs merged for now. I'll look into the PR afterwards

No issues, Thanks, I just rebased the PR, I have added both the fields with their conversions, I will just try to work on how to use these fields while generating certificate

Karthik-K-N avatar Jun 12 '25 06:06 Karthik-K-N

/hold cancel

Ready for initial review, UT is pending

Karthik-K-N avatar Jun 12 '25 09:06 Karthik-K-N

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

sbueringer avatar Jun 12 '25 11:06 sbueringer

Address all the review comments, The PR is ready for next review. Thanks.

Karthik-K-N avatar Jun 13 '25 07:06 Karthik-K-N

/test pull-cluster-api-e2e-main

sbueringer avatar Jun 20 '25 15:06 sbueringer

lgtm pending finding consensus on last comment

fabriziopandini avatar Jun 21 '25 10:06 fabriziopandini

/lgtm

JoelSpeed avatar Jun 30 '25 17:06 JoelSpeed

LGTM label has been added.

Git tree hash: e5fdec0cee28873da6d595d3c1e08f0db9640aba

k8s-ci-robot avatar Jun 30 '25 17:06 k8s-ci-robot

Will try to take another look soon (I currently assume worst case next week)

sbueringer avatar Jun 30 '25 17:06 sbueringer

@Karthik-K-N Can you rebase the PR please? :) I'll review directly afterwards

sbueringer avatar Jul 08 '25 08:07 sbueringer

@Karthik-K-N Can you rebase the PR please? :) I'll review directly afterwards

Done. Thanks

Karthik-K-N avatar Jul 08 '25 14:07 Karthik-K-N

/test pull-cluster-api-e2e-main

sbueringer avatar Jul 09 '25 09:07 sbueringer

Re: https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api/12335/pull-cluster-api-e2e-main/1942878337315639296

e2e tests are fine, the one failure is currently expected

sbueringer avatar Jul 09 '25 12:07 sbueringer

Addressed all the review comments, Please take a look. Please let me know if I need to add any more test cases. thanks

Karthik-K-N avatar Jul 14 '25 15:07 Karthik-K-N

Thank you! I'll try to get to it soon again :)

sbueringer avatar Jul 17 '25 17:07 sbueringer

@Karthik-K-N Sorry can you please rebase again? I'll then review this ASAP

sbueringer avatar Jul 25 '25 05:07 sbueringer

@Karthik-K-N Sorry can you please rebase again? I'll then review this ASAP

No issues, I will do that.

Karthik-K-N avatar Jul 25 '25 14:07 Karthik-K-N

Looks like we need a regen

sbueringer avatar Jul 28 '25 14:07 sbueringer

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

sbueringer avatar Jul 28 '25 15:07 sbueringer

/assign @fabriziopandini

Apart from the last minor finding ready from my side.

PTAL :)

sbueringer avatar Jul 28 '25 17:07 sbueringer

/lgtm

Thank you very much! Sorry again for the delayed reviews

/assign @fabriziopandini

sbueringer avatar Jul 29 '25 05:07 sbueringer

LGTM label has been added.

Git tree hash: afc18c63a1cfd6f5936d0a8bf12ccbf919b3bcdf

k8s-ci-robot avatar Jul 29 '25 05:07 k8s-ci-robot

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

sbueringer avatar Jul 29 '25 13:07 sbueringer

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

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:
  • ~~OWNERS~~ [fabriziopandini]

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 avatar Jul 29 '25 14:07 k8s-ci-robot

@Karthik-K-N: 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-e2e-main 9582a449ade4d320bf102e1cdc5953da6faaa273 link true /test pull-cluster-api-e2e-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.

k8s-ci-robot avatar Jul 29 '25 14:07 k8s-ci-robot

Kudos to @Karthik-K-N for stepping up in implementing this feature Many thanks to @sbueringer for helping in getting this PR ready

/lgtm /approve

Thank you, Big thanks to @sbueringer for continued review and guidance. Looking forward to contribute more.

Karthik-K-N avatar Jul 29 '25 15:07 Karthik-K-N

/override pull-cluster-api-e2e-main-gke

sbueringer avatar Jul 29 '25 15:07 sbueringer