Fix checksum annotations in heat and horizon

Change-Id: Ief0f88791813f2b0f60ed6f29e720a603a119520
This commit is contained in:
okozachenko 2020-05-27 16:13:12 +03:00
parent fab3313431
commit efd3431f52
3 changed files with 6 additions and 6 deletions

View File

@ -35,8 +35,8 @@ spec:
metadata: metadata:
labels: labels:
{{ labels("heat", name, component) | indent(8) }} {{ labels("heat", name, component) | indent(8) }}
annotations: annotations:
checksum/config: "{{ config_hash }}" checksum/config: "{{ config_hash }}"
spec: spec:
containers: containers:
- name: heat-{{ component }} - name: heat-{{ component }}

View File

@ -29,8 +29,8 @@ spec:
metadata: metadata:
labels: labels:
{{ labels("horizon", name) | indent(8) }} {{ labels("horizon", name) | indent(8) }}
annotations: annotations:
checksum/config: "{{ config_hash }}" checksum/config: "{{ config_hash }}"
spec: spec:
containers: containers:
- name: horizon - name: horizon

View File

@ -25,7 +25,7 @@
command: kubectl get pods -l app.kubernetes.io/name=memcached,app.kubernetes.io/instance=devstack -o=jsonpath='{range .items[*]}{.status.podIP}{"\n"}{end}' command: kubectl get pods -l app.kubernetes.io/name=memcached,app.kubernetes.io/instance=devstack -o=jsonpath='{range .items[*]}{.status.podIP}{"\n"}{end}'
register: _memcached_ips register: _memcached_ips
until: _memcached_ips is success until: _memcached_ips is success
retries: 20 retries: 60
delay: 5 delay: 5
failed_when: | failed_when: |
{{ _memcached_ips.stdout_lines | length == 0 }} or {{ _memcached_ips.stdout_lines | length == 0 }} or
@ -38,7 +38,7 @@
register: _metrics register: _metrics
loop: "{{ _memcached_ips.stdout_lines }}" loop: "{{ _memcached_ips.stdout_lines }}"
until: _metrics is success until: _metrics is success
retries: 60 retries: 10
delay: 5 delay: 5
failed_when: "'memcached_up 1' not in _metrics.content" failed_when: "'memcached_up 1' not in _metrics.content"