From 25112d11652429064cbd791284ad9a8fb9b4bf0a Mon Sep 17 00:00:00 2001 From: Britania Rodriguez Reyes Date: Wed, 6 Nov 2024 17:53:28 -0800 Subject: [PATCH] fix deployemnt yaml --- charts/member-agent/templates/deployment.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/charts/member-agent/templates/deployment.yaml b/charts/member-agent/templates/deployment.yaml index 8d352868f..788b3dd93 100644 --- a/charts/member-agent/templates/deployment.yaml +++ b/charts/member-agent/templates/deployment.yaml @@ -83,15 +83,19 @@ spec: httpGet: path: /readyz port: hubhealthz - {{- if not .Values.useCAAuth }} + {{- if or (not .Values.useCAAuth) (eq .Values.propertyProvider "azure") }} volumeMounts: + {{- if not .Values.useCAAuth }} - name: provider-token mountPath: /config + {{- end }} {{- if eq .Values.propertyProvider "azure" }} - name: cloud-provider-config mountPath: /etc/kubernetes/provider readOnly: true {{- end }} + {{- end }} + {{- if not .Values.useCAAuth }} - name: refresh-token image: "{{ .Values.refreshtoken.repository }}:{{ .Values.refreshtoken.tag }}" imagePullPolicy: {{ .Values.refreshtoken.pullPolicy }} @@ -110,14 +114,18 @@ spec: volumeMounts: - name: provider-token mountPath: /config + {{- end }} + {{- if or (not .Values.useCAAuth) (eq .Values.propertyProvider "azure") }} volumes: + {{- if not .Values.useCAAuth }} - name: provider-token emptyDir: {} - {{- if eq .Values.propertyProvider "azure" }} + {{- end }} + {{- if eq .Values.propertyProvider "azure" }} - name: cloud-provider-config secret: secretName: cloud-config - {{- end }} + {{- end }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: