File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
helm-chart/splunk-connect-for-kubernetes/charts
splunk-kubernetes-logging/templates
splunk-kubernetes-metrics/templates
splunk-kubernetes-objects/templates Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,12 @@ Create the name of the service account to use
155155Create the image name
156156*/}}
157157{ {- define " splunk-kubernetes-logging.image" -} }
158+ { {- if contains .Values.image.tag " sha256" -} }
159+ { {- printf " %s/%s@%s" .Values.image.registry .Values.image.name .Values.image.tag -} }
160+ { {- else -} }
158161{ {- printf " %s/%s:%s" .Values.image.registry .Values.image.name .Values.image.tag -} }
159162{ {- end -} }
163+ { {- end -} }
160164
161165{ {/* evaluate field consume_chunk_on_4xx_errors */} }
162166{ {- define " splunk-kubernetes-logging.should_consume_chunk_on_4xx_errors" -} }
Original file line number Diff line number Diff line change @@ -57,14 +57,22 @@ Create the name of the service account to use
5757Create the image name
5858*/} }
5959{ {- define " splunk-kubernetes-metrics.image" -} }
60+ { {- if contains .Values.image.tag " sha256" -} }
61+ { {- printf " %s/%s@%s" .Values.image.registry .Values.image.name .Values.image.tag -} }
62+ { {- else -} }
6063{ {- printf " %s/%s:%s" .Values.image.registry .Values.image.name .Values.image.tag -} }
6164{ {- end -} }
65+ { {- end -} }
6266{ {/*
6367Create the aggregate image name
6468*/} }
6569{ {- define " splunk-kubernetes-metrics.imageAgg" -} }
70+ { {- if contains .Values.imageAgg.tag " sha256" -} }
71+ { {- printf " %s/%s@%s" .Values.imageAgg.registry .Values.imageAgg.name .Values.imageAgg.tag -} }
72+ { {- else -} }
6673{ {- printf " %s/%s:%s" .Values.imageAgg.registry .Values.imageAgg.name .Values.imageAgg.tag -} }
6774{ {- end -} }
75+ { {- end -} }
6876
6977{ {/* evaluate field consume_chunk_on_4xx_errors */} }
7078{ {- define " splunk-kubernetes-metrics.should_consume_chunk_on_4xx_errors" -} }
Original file line number Diff line number Diff line change @@ -86,8 +86,12 @@ Rules:
8686Create the image name
8787*/} }
8888{ {- define " splunk-kubernetes-objects.image" -} }
89+ { {- if contains .Values.image.tag " sha256" -} }
90+ { {- printf " %s/%s@%s" .Values.image.registry .Values.image.name .Values.image.tag -} }
91+ { {- else -} }
8992{ {- printf " %s/%s:%s" .Values.image.registry .Values.image.name .Values.image.tag -} }
9093{ {- end -} }
94+ { {- end -} }
9195
9296{ {/* evaluate field consume_chunk_on_4xx_errors */} }
9397{ {- define " splunk-kubernetes-objects.should_consume_chunk_on_4xx_errors" -} }
You can’t perform that action at this time.
0 commit comments