|
9 | 9 | {{- if $runtimeImageRegistry }}
|
10 | 10 | {{- $_ := set $rootContext.Values.global "imageRegistry" $runtimeImageRegistry }}
|
11 | 11 | {{- end }}
|
| 12 | +{{- $runtimeVersion := coalesce .Values.version .Chart.Version -}} |
| 13 | +{{- $runtimeName := include "runtime.runtime-environment-spec.runtime-name" . -}} |
| 14 | +{{- $engineVersion := coalesce $engineContext.image.tag "latest" -}} |
| 15 | +{{- if $engineContext.image.digest }} |
| 16 | + {{- $engineVersion := printf "%s@%s" $engineVersion $engineContext.image.digest -}} |
| 17 | +{{- end }} |
| 18 | +{{- $dindVersion := coalesce $dindContext.image.tag "latest" -}} |
| 19 | +{{- if $dindContext.image.digest }} |
| 20 | + {{- $dindVersion := printf "%s@%s" $dindVersion $dindContext.image.digest -}} |
| 21 | +{{- end }} |
12 | 22 | metadata:
|
13 | 23 | name: {{ include "runtime.runtime-environment-spec.runtime-name" . }}
|
14 | 24 | agent: {{ .Values.runtime.agent }}
|
@@ -102,9 +112,9 @@ runtimeScheduler:
|
102 | 112 | {{- else }}
|
103 | 113 | COSIGN_IMAGE_SIGNER_IMAGE: {{ include (printf "%s.image.name" $cfCommonTplSemver ) (dict "image" (index $engineContext "runtimeImages" "cosign-image-signer") "context" $rootContext) | squote }}
|
104 | 114 | {{- end }}
|
105 |
| - RUNTIME_CHART_VERSION: {{ coalesce .Values.version .Chart.Version }} |
106 |
| - CF_SERVICE_VERSION: {{ printf "%s@%s" $engineContext.image.tag $engineContext.image.digest }} |
107 |
| - OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.namespace=codefresh-classic-runtime,cf.classic.runtime.name=%s,cf.classic.runtime.version=%s" (coalesce .Values.global.runtimeName (printf "%s/%s" .Values.global.context .Release.Namespace)) (coalesce .Values.version .Chart.Version) }} |
| 115 | + RUNTIME_CHART_VERSION: {{ $runtimeVersion }} |
| 116 | + CF_SERVICE_VERSION: {{ $engineVersion }} |
| 117 | + OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.namespace=codefresh-classic-runtime,cf.classic.runtime.name=%s,cf.classic.runtime.version=%s" $runtimeName $runtimeVersion }} |
108 | 118 | {{- with $engineContext.userEnvVars }}
|
109 | 119 | userEnvVars: {{- toYaml . | nindent 4 }}
|
110 | 120 | {{- end }}
|
@@ -169,6 +179,7 @@ dockerDaemonScheduler:
|
169 | 179 | {{- range $key, $val := . }}
|
170 | 180 | {{ $key }}: {{ $val | squote }}
|
171 | 181 | {{- end }}
|
| 182 | + OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=classic-dind,service.version=%s,service.namespace=codefresh-classic-runtime,cf.classic.runtime.name=%s,cf.classic.runtime.version=%s" $dindVersion $runtimeName $runtimeVersion }} |
172 | 183 | {{- end }}
|
173 | 184 | cluster:
|
174 | 185 | namespace: {{ .Release.Namespace }}
|
|
0 commit comments