Skip to content
Snippets Groups Projects
Unverified Commit cce9d312 authored by Helmut Januschka's avatar Helmut Januschka Committed by GitHub
Browse files

Update k8s-certs-renew.sh.j2 (#7422)

fix undefinedElse
parent e381ce57
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
echo "## Expiration before renewal ##" echo "## Expiration before renewal ##"
{{ bin_dir }}/kubeadm {{ 'alpha ' if kube_version is version('v1.20.0', '<') }}certs check-expiration {{ bin_dir }}/kubeadm {{ 'alpha ' if kube_version is version('v1.20.0', '<') else '' }}certs check-expiration
echo "## Renewing certificates managed by kubeadm ##" echo "## Renewing certificates managed by kubeadm ##"
{{ bin_dir }}/kubeadm {{ 'alpha ' if kube_version is version('v1.20.0', '<') }}certs renew all {{ bin_dir }}/kubeadm {{ 'alpha ' if kube_version is version('v1.20.0', '<') else '' }}certs renew all
echo "## Restarting control plane pods managed by kubeadm ##" echo "## Restarting control plane pods managed by kubeadm ##"
{% if container_manager == "docker" %} {% if container_manager == "docker" %}
...@@ -20,4 +20,4 @@ echo "## Waiting for apiserver to be up again ##" ...@@ -20,4 +20,4 @@ echo "## Waiting for apiserver to be up again ##"
until printf "" 2>>/dev/null >>/dev/tcp/127.0.0.1/6443; do sleep 1; done until printf "" 2>>/dev/null >>/dev/tcp/127.0.0.1/6443; do sleep 1; done
echo "## Expiration after renewal ##" echo "## Expiration after renewal ##"
{{ bin_dir }}/kubeadm {{ 'alpha ' if kube_version is version('v1.20.0', '<') }}certs check-expiration {{ bin_dir }}/kubeadm {{ 'alpha ' if kube_version is version('v1.20.0', '<') else '' }}certs check-expiration
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment