Add an ability to provide oidc cert in base64 (#4618)

This commit is contained in:
Sergey Kolekonov
2019-04-24 20:40:01 +04:00
committed by Kubernetes Prow Robot
parent 4d57ed314d
commit 4a10dca7d4
2 changed files with 15 additions and 1 deletions

View File

@@ -10,6 +10,17 @@
import_tasks: kubeadm-migrate-certs.yml
when: old_apiserver_cert.stat.exists
- name: Install OIDC certificate
copy:
content: "{{ kube_oidc_ca_cert | b64decode }}"
dest: "{{ kube_oidc_ca_file }}"
owner: root
group: root
mode: "0644"
when:
- kube_oidc_auth
- kube_oidc_ca_cert is defined
- name: kubeadm | Check serviceaccount key
stat:
path: "{{ kube_cert_dir }}/sa.key"