-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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 components to generate certificates in-memory #69884
Conversation
/kind bug |
540b1ba
to
b087c65
Compare
Looks good overall. One question. |
/retest |
b087c65
to
b7160d4
Compare
@sttts comments addressed |
@@ -282,15 +301,21 @@ func (s *SecureServingOptions) MaybeDefaultWithSelfSignedCerts(publicAddress str | |||
|
|||
if cert, key, err := certutil.GenerateSelfSignedCertKeyWithFixtures(publicAddress, alternateIPs, alternateDNS, s.ServerCert.FixtureDirectory); err != nil { | |||
return fmt.Errorf("unable to generate self signed cert: %v", err) | |||
} else { | |||
} else if len(keyCert.CertFile) > 0 && len(keyCert.KeyFile) > 0 { |
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.
can one be set and not the other?
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.
no, line 263 keeps us from getting here in that case.
/lgtm |
/assign @mikedanese @luxas |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, mikedanese, sttts 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 |
* Remove controller-manager empty dir mount added for v1.12 kubernetes/kubernetes#68973 * No longer required kubernetes/kubernetes#69884
* Remove controller-manager empty dir mount added for v1.12 kubernetes/kubernetes#68973 * No longer required kubernetes/kubernetes#69884
* Remove controller-manager empty dir mount added for v1.12 kubernetes/kubernetes#68973 * No longer required kubernetes/kubernetes#69884
What this PR does / why we need it:
Allows components to generate self-signed certificates in-memory if no certificate directory is specified. Defaults kube-controller-manager and cloud-controller manager to doing so.
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 #68973
Special notes for your reviewer:
Release note:
/assign @sttts