Skip to content

Commit c6aa9e2

Browse files
mikhail-klimkoshirtabachii
authored andcommitted
feat: multi runtime install
1 parent 6dc0412 commit c6aa9e2

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 }}
@@ -45,3 +46,4 @@
4546
{{- end }}
4647

4748
{{- include "gitops-operator.resources.deployment" $context }}
49+
{{- 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)