Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions templates/pattern-operator-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ data:
gitops.argoRBAC: |
{{ .Values.main.gitops.argoRBAC | indent 4 }}
{{- end }}
{{- if .Values.main.gitops.customArgoYaml }}
gitops.customArgoYaml: |
{{ .Values.main.gitops.customArgoYaml | indent 4 }}
{{- end }}

# gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace
# gitops.installApprovalPlan: GitOpsDefaultApprovalPlan
Expand Down
19 changes: 19 additions & 0 deletions tests/pattern_operator_configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,25 @@ tests:
- exists:
path: data["gitops.argoRBAC"]

- it: Should not include gitops.customArgoYaml by default
asserts:
- notExists:
path: data["gitops.customArgoYaml"]

- it: Should set gitops.customArgoYaml
set:
main:
gitops:
customArgoYaml: |
controller:
resources:
limits:
cpu: "4"
memory: "16Gi"
asserts:
- exists:
path: data["gitops.customArgoYaml"]

- it: Should set gitea parameters
set:
main:
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ main:
# -- Full ArgoCD RBAC spec as a YAML string. When set, it completely
# overrides the default RBAC policy and additionalArgoAdmins is ignored.
argoRBAC: ""
# -- Arbitrary ArgoCD .spec YAML to deep-merge into the operator-built
# ArgoCD CR. Allows customizing any part of the ArgoCD spec without
# requiring individual config keys.
customArgoYaml: ""

# -- Settings related to the in-cluster gitea installation
gitea:
Expand Down