mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-26 03:28:28 +03:00
k8s-certs-renew: fix broken script (#12881)
Unproquer quoting of variable assignment make the shell interpret it as a command ; since the variable is unused anyway, just delete it. Co-authored-by: Max Gautier <mg@max.gautier.name>
This commit is contained in:
committed by
GitHub
parent
7303abacb3
commit
0b199325c8
@@ -5,7 +5,6 @@ echo "## Check Expiration before renewal ##"
|
|||||||
{{ bin_dir }}/kubeadm certs check-expiration
|
{{ bin_dir }}/kubeadm certs check-expiration
|
||||||
|
|
||||||
days_buffer=7 # set a time margin, because we should not renew at the last moment
|
days_buffer=7 # set a time margin, because we should not renew at the last moment
|
||||||
calendar={{ auto_renew_certificates_systemd_calendar }}
|
|
||||||
next_time=$(systemctl show k8s-certs-renew.timer -p NextElapseUSecRealtime --value)
|
next_time=$(systemctl show k8s-certs-renew.timer -p NextElapseUSecRealtime --value)
|
||||||
|
|
||||||
if [ "${next_time}" == "" ]; then
|
if [ "${next_time}" == "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user