Skip to content
Snippets Groups Projects
Commit 1e470b04 authored by Andreas Krüger's avatar Andreas Krüger Committed by Kubernetes Prow Robot
Browse files

Fix certificate-key param for kubeadm init (#4789)

* Fix certificate-key param for kubeadm init

* Fix yamllint error
parent 0ef3a791
No related branches found
No related tags found
No related merge requests found
...@@ -106,13 +106,13 @@ ...@@ -106,13 +106,13 @@
{{ bin_dir }}/kubeadm init {{ bin_dir }}/kubeadm init
--config={{ kube_config_dir }}/kubeadm-config.yaml --config={{ kube_config_dir }}/kubeadm-config.yaml
--ignore-preflight-errors=all --ignore-preflight-errors=all
--skip-phases=addon/coredns
{% if kubeadm_version is version('v1.14.0', '>=') %} {% if kubeadm_version is version('v1.14.0', '>=') %}
--experimental-upload-certs --experimental-upload-certs
{% endif %}
--skip-phases=addon/coredns
{% if kubeadm_certificate_key is defined %} {% if kubeadm_certificate_key is defined %}
--certificate-key={{ kubeadm_certificate_key }} --certificate-key={{ kubeadm_certificate_key }}
{% endif %} {% endif %}
{% endif %}
register: kubeadm_init register: kubeadm_init
# Retry is because upload config sometimes fails # Retry is because upload config sometimes fails
retries: 3 retries: 3
......
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