Skip to content

Commit e3715f2

Browse files
feat: multi runtime install
1 parent 03343f5 commit e3715f2

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{{- include "gitops-operator.crds" . }}
1+
{{- if and (index .Values "gitops-operator" "enabled") }}
2+
{{- include "gitops-operator.crds" . }}
3+
{{- end }}

charts/gitops-runtime/templates/gitops-operator/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if and (index .Values "gitops-operator" "enabled") }}
12
{{- $context := deepCopy . }}
23

34
{{- $defaultVals := include "gitops-operator.default-values" . | fromYaml }}
@@ -44,3 +45,4 @@
4445
{{- end }}
4546

4647
{{- include "gitops-operator.resources.deployment" $context }}
48+
{{- end }}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{{- include "gitops-operator.resources.promotion-template" . }}
1+
{{- if and (index .Values "gitops-operator" "enabled") }}
2+
{{- include "gitops-operator.resources.promotion-template" . }}
3+
{{- end }}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{{- include "gitops-operator.resources.rbac" . }}
1+
{{- if and (index .Values "gitops-operator" "enabled") }}
2+
{{- include "gitops-operator.resources.rbac" . }}
3+
{{- end }}

charts/gitops-runtime/templates/gitops-operator/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{- if and (index .Values "gitops-operator" "enabled") }}
2+
13
{{- $context := deepCopy . }}
24

35
{{- $defaultVals := include "gitops-operator.default-values" . | fromYaml }}
@@ -7,3 +9,5 @@
79
{{- $_ := set $context.Values "global" (deepCopy (get .Values "global")) }}
810

911
{{- include "gitops-operator.resources.sa" $context }}
12+
13+
{{- end }}

0 commit comments

Comments
 (0)