Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
feat(chart): mount a Google Workspace OAuth client for service connections (#850)
Louis Amaudruz807f072dda33
diff --git a/deploy/remote/helm/switch/templates/switch-core/deployment.yaml b/deploy/remote/helm/switch/templates/switch-core/deployment.yamlindex ff614c85c..f47d9bff2 100644--- a/deploy/remote/helm/switch/templates/switch-core/deployment.yaml+++ b/deploy/remote/helm/switch/templates/switch-core/deployment.yaml@@ -86,6 +86,10 @@ spec:- name: HOSTED_GITHUB_CONFIG_PATHvalue: /etc/switch-github/github.json{{- end }}+ {{- if .Values.switchCore.googleWorkspaceClientSecret }}+ - name: GOOGLE_WORKSPACE_CLIENT_CONFIG_PATH+ value: /etc/switch-google-workspace/client.json+ {{- end }}{{- include "switch.coreEnv" (merge (dict "omitOwnerCredentials" true) .) | nindent 12 }}# Readiness checks the database; liveness deliberately does not.# There is one replica, so a failing readiness probe empties the@@ -110,7 +114,7 @@ spec:periodSeconds: 30resources:{{- toYaml .Values.switchCore.resources | nindent 12 }}- {{- if or (include "switch.dbCaBundleConfigMap" .) .Values.switchCore.githubConnectionsSecret .Values.switchCore.hostedControllerSecret (include "switch.teamsAppFederated" .) }}+ {{- if or (include "switch.dbCaBundleConfigMap" .) .Values.switchCore.githubConnectionsSecret .Values.switchCore.googleWorkspaceClientSecret .Values.switchCore.hostedControllerSecret (include "switch.teamsAppFederated" .) }}volumeMounts:{{- if .Values.switchCore.hostedControllerSecret }}- name: hosted-controller@@ -122,6 +126,11 @@ spec:mountPath: /etc/switch-githubreadOnly: true{{- end }}+ {{- if .Values.switchCore.googleWorkspaceClientSecret }}+ - name: google-workspace-client+ mountPath: /etc/switch-google-workspace+ readOnly: true+ {{- end }}{{- if include "switch.dbCaBundleConfigMap" . }}{{- include "switch.dbCaBundleVolumeMount" . | nindent 12 }}{{- end }}@@ -131,7 +140,7 @@ spec:readOnly: true{{- end }}{{- end }}- {{- if or (include "switch.dbCaBundleConfigMap" .) .Values.switchCore.githubConnectionsSecret .Values.switchCore.hostedControllerSecret (include "switch.teamsAppFederated" .) }}+ {{- if or (include "switch.dbCaBundleConfigMap" .) .Values.switchCore.githubConnectionsSecret .Values.switchCore.googleWorkspaceClientSecret .Values.switchCore.hostedControllerSecret (include "switch.teamsAppFederated" .) }}volumes:{{- if .Values.switchCore.hostedControllerSecret }}- name: hosted-controller@@ -145,6 +154,12 @@ spec:secretName: {{ .Values.switchCore.githubConnectionsSecret | quote }}defaultMode: 0400{{- end }}+ {{- if .Values.switchCore.googleWorkspaceClientSecret }}+ - name: google-workspace-client+ secret:+ secretName: {{ .Values.switchCore.googleWorkspaceClientSecret | quote }}+ defaultMode: 0400+ {{- end }}{{- if include "switch.dbCaBundleConfigMap" . }}{{- include "switch.dbCaBundleVolume" . | nindent 8 }}{{- end }}diff --git a/deploy/remote/helm/switch/values.yaml b/deploy/remote/helm/switch/values.yamlindex dd8ec91b1..7d211eec5 100644--- a/deploy/remote/helm/switch/values.yaml+++ b/deploy/remote/helm/switch/values.yaml@@ -187,6 +187,11 @@ switchCore:# GITHUB_APP_PRIVATE_KEY_PATH, so agents can be granted GitHub. Without it,# GitHub can be connected but not granted.githubAppPrivateKeyPath: ""+ # Existing Secret with client.json ({"client_id", "client_secret"}): the+ # Web OAuth client of an internal Google app, for the Google Workspace+ # connection. Register <gatewayPublicUrl>/gateway/service-connections/google-workspace/flows/callback+ # as its redirect URI. Without it, Google Workspace shows as not set up.+ googleWorkspaceClientSecret: ""hostedControllerSecret: ""# How many cloud machines may run at once; 0 means this server cannot run# them. Cloud machines run the agents controller, so above 0 this needs the