openstack-helm/helm-toolkit/templates/snippets
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
..
_keystone_openrc_env_vars.tpl Unify and normalise K8s Resources and Upgrade Strategy 2017-07-06 17:48:16 +00:00
_keystone_secret_openrc.tpl Secret and endpoint standardisation. 2017-07-05 12:22:04 -05:00
_keystone_user_create_env_vars.tpl Unify and normalise K8s Resources and Upgrade Strategy 2017-07-06 17:48:16 +00:00
_kubernetes_entrypoint_init_container.tpl Unify and normalise K8s Resources and Upgrade Strategy 2017-07-06 17:48:16 +00:00
_kubernetes_metadata_labels.tpl Unify and normalise K8s Resources and Upgrade Strategy 2017-07-06 17:48:16 +00:00
_kubernetes_pod_anti_affinity.tpl Unify and normalise K8s Resources and Upgrade Strategy 2017-07-06 17:48:16 +00:00
_kubernetes_resources.tpl Move k8s pod params under common key 2017-07-11 23:28:47 +00:00
_kubernetes_upgrades_daemonset.tpl Helm-toolkit: Fixed upgrade daemonset snippet 2017-07-21 11:09:36 +02:00
_kubernetes_upgrades_deployment.tpl Move k8s pod params under common key 2017-07-11 23:28:47 +00:00