feat: allow configuration of registry, image, tag and digest in single values for opentelemetry addon
* add ci test file
This commit is contained in:
parent
db200fcbd2
commit
cd64df3007
2 changed files with 9 additions and 2 deletions
|
@ -0,0 +1,6 @@
|
|||
controller:
|
||||
kind: Deployment
|
||||
opentelemetry:
|
||||
enabled: true
|
||||
image:
|
||||
registry: mycontainerreg.some.io
|
|
@ -189,8 +189,9 @@ spec:
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.opentelemetry.enabled}}
|
||||
{{ $otelContainerSecurityContext := $.Values.controller.opentelemetry.containerSecurityContext | default $.Values.controller.containerSecurityContext }}
|
||||
{{- include "extraModules" (dict "name" "opentelemetry" "image" .Values.controller.opentelemetry.image "containerSecurityContext" $otelContainerSecurityContext) | nindent 8}}
|
||||
{{- $otelContainerSecurityContext := $.Values.controller.opentelemetry.containerSecurityContext | default $.Values.controller.containerSecurityContext }}
|
||||
{{- $fullImage := printf "%s/%s:%s@%s" .Values.controller.opentelemetry.image.registry .Values.controller.opentelemetry.image.image .Values.controller.opentelemetry.image.tag .Values.controller.opentelemetry.image.digest }}
|
||||
{{- include "extraModules" (dict "name" "opentelemetry" "image" $fullImage "containerSecurityContext" $otelContainerSecurityContext) | nindent 8}}
|
||||
{{- end}}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.hostNetwork }}
|
||||
|
|
Loading…
Reference in a new issue