Skip to content
21 changes: 21 additions & 0 deletions chart/templates/role-app-subagents.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "openops.fullname" . }}-subagent-manager
namespace: {{ .Values.subagents.namespace | default .Release.Namespace }}
Comment thread
bigfluffycookie marked this conversation as resolved.
labels:
{{- include "openops.componentLabels" (dict "root" . "component" "app") | nindent 4 }}
{{- with .Values.global.commonLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.global.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["create", "get", "list", "delete"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get"]
Comment thread
bigfluffycookie marked this conversation as resolved.
22 changes: 22 additions & 0 deletions chart/templates/rolebinding-app-subagents.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "openops.fullname" . }}-subagent-manager
namespace: {{ .Values.subagents.namespace | default .Release.Namespace }}
labels:
Comment thread
bigfluffycookie marked this conversation as resolved.
{{- include "openops.componentLabels" (dict "root" . "component" "app") | nindent 4 }}
{{- with .Values.global.commonLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.global.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "openops.fullname" . }}-subagent-manager
subjects:
- kind: ServiceAccount
name: {{ include "openops.serviceAccountName" (dict "root" . "component" "app") }}
namespace: {{ .Release.Namespace }}
Comment thread
bigfluffycookie marked this conversation as resolved.
16 changes: 16 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,17 @@ openopsEnv:
OPS_SLACK_APP_SIGNING_SECRET: ""
OPS_SLACK_ENABLE_INTERACTIONS: "true"

# Subagent configuration
OPS_SUBAGENTS_ENABLED: "false"
OPS_SUBAGENT_EXECUTOR_TYPE: "k8s"
OPS_SUBAGENT_K8S_NAMESPACE: "{{ .Release.Namespace }}"
Comment thread
bigfluffycookie marked this conversation as resolved.
Outdated
OPS_SUBAGENT_S3_BUCKET: ""
OPS_SUBAGENT_S3_REGION: ""
OPS_SUBAGENT_S3_ENDPOINT: ""
OPS_SUBAGENT_S3_ACCESS_KEY: ""
OPS_SUBAGENT_S3_SECRET_KEY: ""
OPS_SUBAGENT_RUNNER_IMAGE: "535002847982.dkr.ecr.us-east-2.amazonaws.com/openops/subagent-runner:main"

secretEnv:
create: true
existingSecret: ""
Expand Down Expand Up @@ -620,3 +631,8 @@ externalSecrets:
create: false
name: external-secrets-sa
annotations: {}

# Subagent configuration
subagents:
# Namespace where subagent pods run (defaults to same namespace as app)
namespace: ""
Comment thread
bigfluffycookie marked this conversation as resolved.