From c41d5c5485e8472abef5cb4de761a6124b952267 Mon Sep 17 00:00:00 2001 From: Iulia Manda Date: Fri, 13 Oct 2023 11:43:40 +0200 Subject: [PATCH] fix: DRA helm chart installs failing --- charts/snyk-broker/templates/broker_deployment.yaml | 4 ++-- charts/snyk-broker/templates/cra_deployment.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/snyk-broker/templates/broker_deployment.yaml b/charts/snyk-broker/templates/broker_deployment.yaml index 3faec04..35410df 100644 --- a/charts/snyk-broker/templates/broker_deployment.yaml +++ b/charts/snyk-broker/templates/broker_deployment.yaml @@ -270,7 +270,7 @@ spec: name: {{ .Values.scmType}}-broker-token-{{ .Release.Name }} key: "{{ .Values.scmType}}-broker-token-key" - name: CR_AGENT_URL - value: http://cra-service:{{ .Values.deployment.container.crSnykPort | toString }} + value: http://cra-service-{{ .Release.Name }}:{{ .Values.deployment.container.crSnykPort | toString }} - name: CR_TYPE value: {{ .Values.crType }} - name: CR_BASE @@ -298,7 +298,7 @@ spec: - name: BROKER_CLIENT_URL value: {{ .Values.brokerClientUrl }} - name: BROKER_CLIENT_VALIDATION_URL - value: http://cra-service:{{ .Values.deployment.container.crSnykPort | toString }}/healthcheck + value: http://cra-service-{{ .Release.Name }}:{{ .Values.deployment.container.crSnykPort | toString }}/healthcheck {{- end }} {{- if .Values.enableCodeAgent }} # Code Agent diff --git a/charts/snyk-broker/templates/cra_deployment.yaml b/charts/snyk-broker/templates/cra_deployment.yaml index 83b6971..2b888dc 100644 --- a/charts/snyk-broker/templates/cra_deployment.yaml +++ b/charts/snyk-broker/templates/cra_deployment.yaml @@ -29,7 +29,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - serviceAccountName: {{ include "snyk-broker.serviceAccountName" . }} + serviceAccountName: {{ include "snyk-broker.serviceAccountName" . }}-{{ .Release.Name }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: @@ -77,6 +77,6 @@ spec: - port: {{ .Values.deployment.container.crSnykPort }} targetPort: {{ .Values.deployment.container.crSnykPort}} selector: - app.kubernetes.io/name: {{ .Release.Name }}-cr + app.kubernetes.io/name: {{ .Release.Name }}-cr-{{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }}