From 80a7acf98d4b3991df91c0cd6960e8ebcdcd6a8f Mon Sep 17 00:00:00 2001 From: ababu13 Date: Wed, 20 Aug 2025 15:47:02 -0400 Subject: [PATCH] Added AutoMountServiceAccountToken Volume and VolumeMount to the Template --- cluster-agent/templates/deployment-operator.yaml | 10 +++++++++- cluster-agent/values.yaml | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cluster-agent/templates/deployment-operator.yaml b/cluster-agent/templates/deployment-operator.yaml index cb30596..4844fd2 100644 --- a/cluster-agent/templates/deployment-operator.yaml +++ b/cluster-agent/templates/deployment-operator.yaml @@ -25,6 +25,7 @@ spec: {{ end -}} nodeSelector: {{- toYaml .Values.operatorPod.nodeSelector | nindent 8 }} + automountServiceAccountToken: {{ .Values.operatorPod.automountServiceAccountToken | default true }} containers: - name: appdynamics-operator image: {{ .Values.imageInfo.operatorImage }}:{{ .Values.imageInfo.operatorTag }} @@ -47,4 +48,11 @@ spec: fieldPath: metadata.name - name: OPERATOR_NAME value: "appdynamics-operator" - + {{- if .Values.operatorPod.volumeMounts }} + volumeMounts: + {{- toYaml .Values.operatorPod.volumeMounts | nindent 12 }} + {{- end }} + {{- if .Values.operatorPod.volumes }} + volumes: + {{- toYaml .Values.operatorPod.volumes | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/cluster-agent/values.yaml b/cluster-agent/values.yaml index dec4fbe..6d120f2 100644 --- a/cluster-agent/values.yaml +++ b/cluster-agent/values.yaml @@ -117,6 +117,9 @@ operatorPod: cpu: 100m memory: 64Mi imagePullSecret: "" + automountServiceAccountToken: true + volumeMounts: [] + volumes: [] # Infraviz pod specific properties infravizPod: