Browse Source

Merge pull request #990 from mattymo/fix_cert_upgrade

Fix check for node-NODEID certs existence
pull/998/head
Matthew Mosesohn 7 years ago
committed by GitHub
parent
commit
0180ad7f38
2 changed files with 2 additions and 0 deletions
  1. 1
      roles/etcd/tasks/check_certs.yml
  2. 1
      roles/kubernetes/secrets/tasks/check-certs.yml

1
roles/etcd/tasks/check_certs.yml

@ -43,6 +43,7 @@
{% for host in all_etcd_hosts %}
{% if host == inventory_hostname %}
{% if (not etcdcert.results[0].stat.exists|default(False)) or
(not etcdcert.results[1].stat.exists|default(False)) or
(etcdcert.results[1].stat.checksum|default('') != etcdcert_master.results[loop.index].stat.checksum|default('')) -%}
{%- set _ = certs.update({'sync': True}) -%}
{% endif %}

1
roles/kubernetes/secrets/tasks/check-certs.yml

@ -41,6 +41,7 @@
{%- for host in groups['k8s-cluster'] %}
{% if host == inventory_hostname %}
{% if (not kubecert.results[0].stat.exists|default(False)) or
(not kubecert.results[1].stat.exists|default(False)) or
(kubecert.results[1].stat.checksum|default('') != kubecert_master.results[loop.index].stat.checksum|default('')) -%}
{%- set _ = certs.update({'sync': True}) -%}
{% endif %}

Loading…
Cancel
Save