File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change
1
+ { {/*
2
+ Find a diag-proxy image in various places.
3
+ Image can be found from:
4
+ * specified by user from .Values.IMAGE_REPOSITORY and .Values.TAG
5
+ * default value
6
+ */} }
7
+ { {- define " diag-proxy.image" -} }
8
+ { {- if and (not (empty .Values.IMAGE_REPOSITORY)) (not (empty .Values.TAG)) -} }
9
+ { {- printf " %s:%s" .Values.IMAGE_REPOSITORY .Values.TAG -} }
10
+ { {- else -} }
11
+ { {- printf " ghcr.io/netcracker/diag-proxy:main" -} }
12
+ { {- end -} }
13
+ { {- end -} }
Original file line number Diff line number Diff line change 54
54
{{- end }}
55
55
containers :
56
56
- name : {{ .Values.SERVICE_NAME }}
57
- image : ' {{ .Values.IMAGE_REPOSITORY }}:{{ .Values.TAG }}'
57
+ image : {{ template "diag-proxy.image" . }}
58
58
ports :
59
59
- name : cdt-tcp
60
60
containerPort : 1715
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ ARTIFACT_DESCRIPTOR_VERSION: ''
6
6
7
7
# -- Image coordinates, next two values will be joined as:
8
8
# IMAGE_REPOSITORY:TAG
9
- IMAGE_REPOSITORY : ghcr.io/netcracker/diag-proxy
10
- TAG : main
9
+ # IMAGE_REPOSITORY: ghcr.io/netcracker/diag-proxy
10
+ # TAG: main
11
11
# --- The name of the secret in Kubernetes that provides access to the private Docker registry
12
12
imagePullSecrets : []
13
13
# ## Deployment parameters
You can’t perform that action at this time.
0 commit comments