Update job dependency method to match existing pattern

This also moves joinWithColon to common, so a subsequent commit should remove
the _helpers.tpl template from charts which include common as a dependency.
This commit is contained in:
Alan Meadows 2016-12-21 05:51:44 -08:00
parent 6ec92626e8
commit 60e2d4a6cc
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,7 @@
{{- define "joinListWithColon" -}}
{{ range $k, $v := . }}{{ if $k }},{{ end }}{{ $v }}{{ end }}
{{- end -}}
{{- define "template" -}}
{{- $name := index . 0 -}}
{{- $context := index . 1 -}}

View File

@ -21,7 +21,7 @@ spec:
},
{
"name": "DEPENDENCY_SERVICE",
"value": "memcached,keystone-api"
"value": "{{ include "joinListWithColon" .Values.dependencies.dashboard.service }}"
},
{
"name": "COMMAND",

View File

@ -21,6 +21,12 @@ local_settings:
horizon_secret_key: 9aee62c0-5253-4a86-b189-e0fb71fa503c
debug: "True"
dependencies:
dashboard:
service:
- memcached
- keystone-api
# typically overriden by environmental
# values, but should include all endpoints
# required by this chart
@ -34,3 +40,4 @@ endpoints:
port:
admin: 35356
public: 5000