Skip to content

Commit dc125d6

Browse files
suggestions
1 parent c82b0ac commit dc125d6

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

chart/templates/role-app-subagents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq (index .Values.openopsEnv "OPS_SUBAGENTS_ENABLED") "true" }}
12
apiVersion: rbac.authorization.k8s.io/v1
23
kind: Role
34
metadata:
@@ -22,3 +23,4 @@ rules:
2223
- apiGroups: [""]
2324
resources: ["pods/log"]
2425
verbs: ["get"]
26+
{{- end }}

chart/templates/rolebinding-app-subagents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq (index .Values.openopsEnv "OPS_SUBAGENTS_ENABLED") "true" }}
12
apiVersion: rbac.authorization.k8s.io/v1
23
kind: RoleBinding
34
metadata:
@@ -20,3 +21,4 @@ subjects:
2021
- kind: ServiceAccount
2122
name: {{ include "openops.serviceAccountName" (dict "root" . "component" "app") }}
2223
namespace: {{ .Release.Namespace }}
24+
{{- end }}

chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ openopsEnv:
146146
# Subagent configuration
147147
OPS_SUBAGENTS_ENABLED: "false"
148148
OPS_SUBAGENT_EXECUTOR_TYPE: "k8s"
149-
OPS_SUBAGENT_K8S_NAMESPACE: "{{ .Release.Namespace }}"
149+
OPS_SUBAGENT_K8S_NAMESPACE: '{{ .Values.subagents.namespace | default .Release.Namespace }}'
150150
OPS_SUBAGENT_S3_BUCKET: ""
151151
OPS_SUBAGENT_S3_REGION: ""
152152
OPS_SUBAGENT_S3_ENDPOINT: ""
153-
OPS_SUBAGENT_RUNNER_IMAGE: "535002847982.dkr.ecr.us-east-2.amazonaws.com/openops/subagent-runner:main"
153+
OPS_SUBAGENT_RUNNER_IMAGE: "535002847982.dkr.ecr.us-east-2.amazonaws.com/openops/subagent-runner:0fdbc6b1"
154154

155155
# Secret environment variables
156156
# Any var in this section is treated as a secret (stored in K8s Secret, referenced via secretKeyRef).

0 commit comments

Comments
 (0)