diff --git a/deploy/charts/disco-agent/templates/_helpers.tpl b/deploy/charts/disco-agent/templates/_helpers.tpl index b38cb1b8..7dfb97b9 100644 --- a/deploy/charts/disco-agent/templates/_helpers.tpl +++ b/deploy/charts/disco-agent/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Util function for generating an image reference based on the provided options. This function is derived from similar functions used in the cert-manager GitHub organization */}} -{{- define "image" -}} +{{- define "disco-agent.image" -}} {{- /* Calling convention: - (tuple ) diff --git a/deploy/charts/disco-agent/templates/deployment.yaml b/deploy/charts/disco-agent/templates/deployment.yaml index e640bf4d..0c98b9a5 100644 --- a/deploy/charts/disco-agent/templates/deployment.yaml +++ b/deploy/charts/disco-agent/templates/deployment.yaml @@ -39,7 +39,7 @@ spec: securityContext: {{- toYaml . | nindent 12 }} {{- end }} - image: "{{ template "image" (tuple .Values.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" + image: "{{ template "disco-agent.image" (tuple .Values.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: POD_NAMESPACE diff --git a/deploy/charts/discovery-agent/templates/_helpers.tpl b/deploy/charts/discovery-agent/templates/_helpers.tpl index ad972b80..f804b258 100644 --- a/deploy/charts/discovery-agent/templates/_helpers.tpl +++ b/deploy/charts/discovery-agent/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Util function for generating an image reference based on the provided options. This function is derived from similar functions used in the cert-manager GitHub organization */}} -{{- define "image" -}} +{{- define "discovery-agent.image" -}} {{- /* Calling convention: - (tuple ) diff --git a/deploy/charts/discovery-agent/templates/deployment.yaml b/deploy/charts/discovery-agent/templates/deployment.yaml index c2fd4e9a..35be4f3e 100644 --- a/deploy/charts/discovery-agent/templates/deployment.yaml +++ b/deploy/charts/discovery-agent/templates/deployment.yaml @@ -36,7 +36,7 @@ spec: securityContext: {{- toYaml . | nindent 12 }} {{- end }} - image: "{{ template "image" (tuple .Values.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" + image: "{{ template "discovery-agent.image" (tuple .Values.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: POD_NAMESPACE diff --git a/deploy/charts/venafi-kubernetes-agent/templates/_helpers.tpl b/deploy/charts/venafi-kubernetes-agent/templates/_helpers.tpl index 5d781866..18fb8375 100644 --- a/deploy/charts/venafi-kubernetes-agent/templates/_helpers.tpl +++ b/deploy/charts/venafi-kubernetes-agent/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Util function for generating an image reference based on the provided options. This function is derviced from similar functions used in the cert-manager GitHub organization */}} -{{- define "image" -}} +{{- define "venafi-kubernetes-agent.image" -}} {{- /* Calling convention: - (tuple ) diff --git a/deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml b/deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml index 9f5c1ba3..24eb99a9 100644 --- a/deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml +++ b/deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml @@ -30,7 +30,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ template "image" (tuple .Values.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" + image: "{{ template "venafi-kubernetes-agent.image" (tuple .Values.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: POD_NAMESPACE