openstack-helm/helm-toolkit/templates
Artur Korzeniewski 7e532bdb11 Helm-toolkit: Fixed upgrade daemonset snippet
The issue was with type of upgrade strategy, which was rendered as empty.
It was due to wrong access to the pod_replacement_strategy, which was
out of modified scope:

      daemonsets:
        pod_replacement_strategy: RollingUpdate
        dhcp_agent:
          enabled: false
          min_ready_seconds: 0
          max_unavailable: 1

and the snippet was modifying the scope to daemonset.dhcp_agent, then
trying to access daemonsets.dhcpagent.pod_replacement_strategy, which was
not there:

{{- $upgradeMap := index $envAll.Values.pod.lifecycle.upgrades.daemonsets $component }}
updateStrategy:
  type: {{ .pod_replacement_strategy }}

The fix is to evaluate the common variable before entering the scope
modification.

{{- $pod_replacement_strategy := $envAll.Values.pod.lifecycle.upgrades.daemonsets.pod_replacement_strategy -}}
type: {{ $pod_replacement_strategy }}

Change-Id: I78937b1bf1e0d50ca372de095582c71105d76331
Closes-Bug: 1705662
2017-07-21 11:09:36 +02:00
..
endpoints Mariadb: Update to use endpoint values layout and lookups 2017-07-03 13:17:48 +00:00
scripts Keystone: Member role fixes 2017-06-24 16:28:56 +00:00
snippets Helm-toolkit: Fixed upgrade daemonset snippet 2017-07-21 11:09:36 +02:00
utils Ingress controller for public endpoints 2017-06-28 17:37:10 -05:00