-
Notifications
You must be signed in to change notification settings - Fork 1.4k
✨ Add CertificateValidityPeriod and CACertificateValidityPeriod to KubeadmConfig #12335
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
7f713bb
29ee524
1680d8a
2834127
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,11 @@ func spokeClusterConfigurationFuzzer(obj *ClusterConfiguration, c randfill.Conti | |
obj.Proxy = Proxy{} | ||
obj.EncryptionAlgorithm = "" | ||
obj.CACertificateValidityPeriod = nil | ||
Karthik-K-N marked this conversation as resolved.
Show resolved
Hide resolved
|
||
obj.CertificateValidityPeriod = nil | ||
|
||
if obj.CertificateValidityPeriod != nil { | ||
obj.CertificateValidityPeriod = ptr.To[metav1.Duration](metav1.Duration{Duration: time.Duration(c.Int31()) * time.Second}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be changed to time.Days when we change the fields on the v1beta2 api to *Days Please check if max of c.Int31() * time.Days is already more than max of Duration. Then we don't have to do anything here. We only had to add this for other cases because it was possible to have a Duration which was to high to be converted to Seconds int32 |
||
obj.CACertificateValidityPeriod = ptr.To[metav1.Duration](metav1.Duration{Duration: time.Duration(c.Int31()) * time.Second}) | ||
} | ||
|
||
// Drop the following fields as they have been removed in v1beta2, so we don't have to preserve them. | ||
obj.Networking.ServiceSubnet = "" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.