Skip to content

Commit 57a9a25

Browse files
more suggestions
1 parent dc125d6 commit 57a9a25

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

chart/templates/role-app-subagents.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- if eq (index .Values.openopsEnv "OPS_SUBAGENTS_ENABLED") "true" }}
1+
{{- $openopsEnv := .Values.openopsEnv | default dict }}
2+
{{- if and (eq (toString (get $openopsEnv "OPS_SUBAGENTS_ENABLED")) "true") (eq (default "k8s" (get $openopsEnv "OPS_SUBAGENT_EXECUTOR_TYPE")) "k8s") }}
23
apiVersion: rbac.authorization.k8s.io/v1
34
kind: Role
45
metadata:

chart/templates/rolebinding-app-subagents.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- if eq (index .Values.openopsEnv "OPS_SUBAGENTS_ENABLED") "true" }}
1+
{{- $openopsEnv := .Values.openopsEnv | default dict }}
2+
{{- if and (eq (toString (get $openopsEnv "OPS_SUBAGENTS_ENABLED")) "true") (eq (default "k8s" (get $openopsEnv "OPS_SUBAGENT_EXECUTOR_TYPE")) "k8s") }}
23
apiVersion: rbac.authorization.k8s.io/v1
34
kind: RoleBinding
45
metadata:

0 commit comments

Comments
 (0)