-
Notifications
You must be signed in to change notification settings - Fork 829
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
make webhook server certificate name and key name configurable #1464
Conversation
Please help add a release note. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold
until the release note ready.
/remove-approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrlihanbo I suggested the flag name, please take a look.
cmd/webhook/app/options/options.go
Outdated
@@ -57,7 +60,9 @@ func (o *Options) AddFlags(flags *pflag.FlagSet) { | |||
flags.IntVar(&o.SecurePort, "secure-port", defaultPort, | |||
"The secure port on which to serve HTTPS.") | |||
flags.StringVar(&o.CertDir, "cert-dir", defaultCertDir, | |||
"The directory that contains the server key(named tls.key) and certificate(named tls.crt).") | |||
"The directory that contains the server key and certificate.") | |||
flags.StringVar(&o.CertName, "cert-name", "tls.crt", "The name of server certificate.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flags.StringVar(&o.CertName, "cert-name", "tls.crt", "The name of server certificate.") | |
flags.StringVar(&o.CertName, "tls-cert-file-name", "tls.crt", "The name of server certificate.") |
cmd/webhook/app/options/options.go
Outdated
"The directory that contains the server key(named tls.key) and certificate(named tls.crt).") | ||
"The directory that contains the server key and certificate.") | ||
flags.StringVar(&o.CertName, "cert-name", "tls.crt", "The name of server certificate.") | ||
flags.StringVar(&o.KeyName, "key-name", "tls.key", "The name of server key.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flags.StringVar(&o.KeyName, "key-name", "tls.key", "The name of server key.") | |
flags.StringVar(&o.KeyName, "tls-private-key-file-name", "tls.key", "The name of server key.") |
Signed-off-by: lihanbo <lihanbo2@huawei.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Signed-off-by: lihanbo lihanbo2@huawei.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
Make webhook server certificate name and key name configurable.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: