kubernetes/cmd/kubeadm/test
Lubomir I. Ivanov 74e1438d86 kubeadm: add support for custom cert validity period in v1beta4
Allow the user to pass custom cert validity period with
ClusterConfiguration.CertificateValidityPeriod and
CACertificateValidityPeriod.

The defaults remain 1 year for regular cert and 10 years for CA.
Show warnings if the provided values are more than the defaults.

Additional changes:
- In "certs show-expiration" use HumanDuration() to print
more detailed durations instead of ShortHumanDuration().
- Add a new kubeadm util GetStartTime() which can be used
to consistently get a UTC time for tasks like writing certs
and unit tests.
- Update unit tests to validate the new customizable NotAfter.
2024-05-01 19:01:49 +03:00
..
cmd kubeadm: fix flaky test TestRunRenewCommands 2024-01-01 20:47:03 +08:00
kubeconfig kubeadm: add support for custom cert validity period in v1beta4 2024-05-01 19:01:49 +03:00
resources re-order imports for kubeadm 2021-08-17 22:40:46 +08:00
util.go replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00