88metadata :
99 name : {{ include "runtime.runtime-environment-spec.runtime-name" . }}
1010 agent : {{ .Values.runtime.agent }}
11- extends : {{- toYaml .Values.runtime.runtimeExtends | nindent 2 }}
12- {{- with .Values.runtime.description }}
13- description : {{ . }}
14- {{- end }}
15- {{- if not .Values.runtime.agent }}
16- accounts : {{- toYaml .Values.runtime.accounts | nindent 2 }}
17- {{- end }}
1811runtimeScheduler :
1912 type : KubernetesPod
2013 {{- if $engineContext.image }}
21- image : {{ include (printf "%s.image.name" $cfCommonTplSemver ) (dict "image" $engineContext.image "context" .) }}
14+ image : {{ include (printf "%s.image.name" $cfCommonTplSemver ) (dict "image" $engineContext.image "context" .) | quote }}
2215 {{- end }}
2316 {{- with $engineContext.command }}
2417 command : {{- toYaml . | nindent 4 }}
@@ -27,19 +20,19 @@ runtimeScheduler:
2720 {{- with $engineContext.env }}
2821 {{- toYaml . | nindent 4 }}
2922 {{- end }}
30- COMPOSE_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.COMPOSE_IMAGE) }} '
31- CONTAINER_LOGGER_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.CONTAINER_LOGGER_IMAGE) }} '
32- DOCKER_BUILDER_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_BUILDER_IMAGE) }} '
33- DOCKER_PULLER_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_PULLER_IMAGE) }} '
34- DOCKER_PUSHER_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_PUSHER_IMAGE) }} '
35- DOCKER_TAG_PUSHER_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_TAG_PUSHER_IMAGE) }} '
36- FS_OPS_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.FS_OPS_IMAGE) }} '
37- GIT_CLONE_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.GIT_CLONE_IMAGE) }} '
38- KUBE_DEPLOY : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.KUBE_DEPLOY) }} '
39- PIPELINE_DEBUGGER_IMAGE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.PIPELINE_DEBUGGER_IMAGE) }} '
40- TEMPLATE_ENGINE : ' {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.TEMPLATE_ENGINE) }} '
23+ COMPOSE_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.COMPOSE_IMAGE) | quote }}
24+ CONTAINER_LOGGER_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.CONTAINER_LOGGER_IMAGE) | quote }}
25+ DOCKER_BUILDER_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_BUILDER_IMAGE) | quote }}
26+ DOCKER_PULLER_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_PULLER_IMAGE) | quote }}
27+ DOCKER_PUSHER_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_PUSHER_IMAGE) | quote }}
28+ DOCKER_TAG_PUSHER_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.DOCKER_TAG_PUSHER_IMAGE) | quote }}
29+ FS_OPS_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.FS_OPS_IMAGE) | quote }}
30+ GIT_CLONE_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.GIT_CLONE_IMAGE) | quote }}
31+ KUBE_DEPLOY : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.KUBE_DEPLOY) | quote }}
32+ PIPELINE_DEBUGGER_IMAGE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.PIPELINE_DEBUGGER_IMAGE) | quote }}
33+ TEMPLATE_ENGINE : {{ include "runtime.runtimeImageName" (dict "registry" $imageRegistry "imageFullName" $engineContext.runtimeImages.TEMPLATE_ENGINE) | quote }}
4134 {{- with $engineContext.userEnvVars }}
42- userEnvVars : {{- toYaml . | nindent 2 }}
35+ userEnvVars : {{- toYaml . | nindent 4 }}
4336 {{- end }}
4437 {{- with $engineContext.workflowLimits }}
4538 workflowLimits : {{ toYaml . | nindent 4 }}
@@ -82,7 +75,7 @@ runtimeScheduler:
8275dockerDaemonScheduler :
8376 type : DindKubernetesPod
8477 {{- if $dindContext.image }}
85- dindImage : {{ include (printf "%s.image.name" $cfCommonTplSemver ) (dict "image" $dindContext.image "context" .) }}
78+ dindImage : {{ include (printf "%s.image.name" $cfCommonTplSemver ) (dict "image" $dindContext.image "context" .) | quote }}
8679 {{- end }}
8780 {{- with $dindContext.userAccess }}
8881 userAccess : {{ . }}
@@ -125,7 +118,10 @@ dockerDaemonScheduler:
125118 pvcs :
126119 {{- range $index, $pvc := $dindContext.pvcs }}
127120 - name : {{ $pvc.name }}
128- {{- include (printf "%v.tplrender" $cfCommonTplSemver) (dict "Values" (omit $pvc "name" ) "context" $) | nindent 6 }}
121+ reuseVolumeSelector : {{ $pvc.reuseVolumeSelector | quote }}
122+ reuseVolumeSortOrder : {{ $pvc.reuseVolumeSortOrder }}
123+ storageClassName : {{ include (printf "%v.tplrender" $cfCommonTplSemver) (dict "Values" $pvc.storageClassName "context" $) }}
124+ volumeSize : {{ $pvc.volumeSize }}
129125 {{- end }}
130126 {{- end }}
131127 defaultDindResources :
@@ -159,4 +155,16 @@ dockerDaemonScheduler:
159155 secret :
160156 secretName : codefresh-certs-server
161157 {{- end }}
158+ extends : {{- toYaml .Values.runtime.runtimeExtends | nindent 2 }}
159+ {{- if .Values.runtime.description }}
160+ description : {{ .Values.runtime.description }}
161+ {{- else }}
162+ description : null
163+ {{- end }}
164+ {{- if .Values.global.accountId }}
165+ accountId : {{ .Values.global.accountId }}
166+ {{- end }}
167+ {{- if not .Values.runtime.agent }}
168+ accounts : {{- toYaml .Values.runtime.accounts | nindent 2 }}
169+ {{- end }}
162170{{- end }}
0 commit comments