Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Set automountServiceAccountToken as false for the once where it is no… (#742)

Abhishek5ef6847473a9
diff --git a/charts/trueforge/templates/controller-deployment.yaml b/charts/trueforge/templates/controller-deployment.yaml
index 9c68a95b6..bc1c267d3 100644
--- a/charts/trueforge/templates/controller-deployment.yaml
+++ b/charts/trueforge/templates/controller-deployment.yaml
@@ -35,6 +35,7 @@ spec:
{{- . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "trueforge.serviceAccountName" . }}
+ automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
diff --git a/charts/trueforge/templates/deployment.yaml b/charts/trueforge/templates/deployment.yaml
index 2a05fe313..91090a839 100644
--- a/charts/trueforge/templates/deployment.yaml
+++ b/charts/trueforge/templates/deployment.yaml
@@ -36,6 +36,7 @@ spec:
{{- . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "trueforge.serviceAccountName" . }}
+ automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
diff --git a/charts/trueforge/values.yaml b/charts/trueforge/values.yaml
index 4ce9ab620..e87d1d521 100644
--- a/charts/trueforge/values.yaml
+++ b/charts/trueforge/values.yaml
@@ -16,6 +16,8 @@ serviceAccount:
annotations: {}
# If empty and create is true, a name is generated from the fullname.
name: ""
+# Mount the ServiceAccount token into the server and controller pods.
+automountServiceAccountToken: false
podAnnotations: {}
podLabels: {}
# Labels / annotations on every rendered object (merged over global.labels /