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: