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

🌱 Allow users to specify webhook server cert and key names #10551

Merged
merged 1 commit into from
May 7, 2024

Conversation

vincepri
Copy link
Member

@vincepri vincepri commented May 3, 2024

What this PR does / why we need it:

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 #

/area api

@k8s-ci-robot k8s-ci-robot added the area/api Issues or PRs related to the APIs label May 3, 2024
Copy link

linux-foundation-easycla bot commented May 3, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: vincepri / name: Vince Prignano (09bdfb9)

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels May 3, 2024
@vincepri
Copy link
Member Author

vincepri commented May 3, 2024

/check-cla

1 similar comment
@vincepri
Copy link
Member Author

vincepri commented May 3, 2024

/check-cla

@@ -218,6 +220,12 @@ func InitFlags(fs *pflag.FlagSet) {
fs.StringVar(&webhookCertDir, "webhook-cert-dir", "/tmp/k8s-webhook-server/serving-certs/",
"Webhook cert dir, only used when webhook-port is specified.")

fs.StringVar(&webhookCertName, "webhook-cert-name", "tls.crt",
Copy link
Member

@chrischdi chrischdi May 3, 2024

Choose a reason for hiding this comment

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

should we do this for all our controllers to keep it consistent (bootstrap & control-plane)?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah once I fix my CLA I'll take care of this

Copy link
Member

@sbueringer sbueringer May 3, 2024

Choose a reason for hiding this comment

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

Might be worth putting it in a reusable util if we can come up with a reasonable name for it :)

Copy link
Member Author

Choose a reason for hiding this comment

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

done! ptal

Copy link
Member Author

Choose a reason for hiding this comment

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

I might tackle this separately, all of these flags could be defined either in a util here in CAPI, or in a util package in controller runtime, to have the flags consistent across controllers

Copy link
Member

@sbueringer sbueringer May 6, 2024

Choose a reason for hiding this comment

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

or in a util package in controller runtime, to have the flags consistent across controllers

Comes dangerously close to a config file :) (but yeah agree)

@vincepri
Copy link
Member Author

vincepri commented May 3, 2024

/check-cla

@jarias-lfx
Copy link

/easycla

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels May 3, 2024
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 3, 2024
Copy link
Member

@christopherhein christopherhein left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks @vincepri !

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

LGTM label has been added.

Git tree hash: edb88361225082d8b64faa20b1251315341eadb2

bootstrap/kubeadm/main.go Outdated Show resolved Hide resolved
main.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 6, 2024
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 6, 2024
@vincepri vincepri force-pushed the tls-cert-key-flags branch 2 times, most recently from 31a29f9 to 77a4e63 Compare May 6, 2024 16:16
@sbueringer
Copy link
Member

@vincepri Last one, I think: #10551 (comment)

Signed-off-by: Vince Prignano <vince@prigna.com>
@sbueringer
Copy link
Member

Thx!

/lgtm
/approve

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

LGTM label has been added.

Git tree hash: 84b5f1c326d197e3d064f36bbe6b3c45108ec010

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 May 7, 2024
@k8s-ci-robot k8s-ci-robot merged commit e4137de into kubernetes-sigs:main May 7, 2024
21 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.8 milestone May 7, 2024
@vincepri
Copy link
Member Author

vincepri commented May 8, 2024

/cherry-pick release-1.7

@vincepri
Copy link
Member Author

vincepri commented May 8, 2024

/cherry-pick release-1.6

@k8s-infra-cherrypick-robot

@vincepri: new pull request created: #10581

In response to this:

/cherry-pick release-1.7

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.

@k8s-infra-cherrypick-robot

@vincepri: new pull request created: #10582

In response to this:

/cherry-pick release-1.6

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/api Issues or PRs related to the APIs 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants