-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1583 from FabianKramm/main
merge vCluster charts & new values.yaml
- Loading branch information
Showing
354 changed files
with
16,393 additions
and
14,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{/* | ||
is external etcd enabled? | ||
*/}} | ||
{{- define "vcluster.externalEtcd.enabled" -}} | ||
{{- if and (eq (include "vcluster.distro" .) "k8s") (not .Values.controlPlane.backingStore.embeddedEtcd.enabled) -}} | ||
{{- true -}} | ||
{{- else if and (eq (include "vcluster.distro" .) "eks") (not .Values.controlPlane.backingStore.embeddedEtcd.enabled) -}} | ||
{{- true -}} | ||
{{- else if .Values.controlPlane.backingStore.externalEtcd.enabled -}} | ||
{{- true -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
migrate from external etcd? | ||
*/}} | ||
{{- define "vcluster.externalEtcd.migrate" -}} | ||
{{- if and .Values.controlPlane.backingStore.embeddedEtcd.enabled .Values.controlPlane.backingStore.embeddedEtcd.migrateFromExternalEtcd -}} | ||
{{- true -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{- define "vcluster.distro.env" -}} | ||
{{- if and (eq (include "vcluster.distro" .) "k3s") .Values.controlPlane.distro.k3s.env -}} | ||
{{ .Values.controlPlane.distro.k3s.env }} | ||
{{- else if and (eq (include "vcluster.distro" .) "k8s") .Values.controlPlane.distro.k8s.env -}} | ||
{{ .Values.controlPlane.distro.k8s.env }} | ||
{{- else if and (eq (include "vcluster.distro" .) "k0s") .Values.controlPlane.distro.k0s.env -}} | ||
{{ .Values.controlPlane.distro.k0s.env }} | ||
{{- else if and (eq (include "vcluster.distro" .) "eks") .Values.controlPlane.distro.eks.env -}} | ||
{{ .Values.controlPlane.distro.eks.env }} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
vCluster Distro | ||
*/}} | ||
{{- define "vcluster.distro" -}} | ||
{{- $distros := 0 -}} | ||
{{- if .Values.controlPlane.distro.k3s.enabled -}} | ||
k3s | ||
{{- $distros = add1 $distros -}} | ||
{{- end -}} | ||
{{- if .Values.controlPlane.distro.k0s.enabled -}} | ||
k0s | ||
{{- $distros = add1 $distros -}} | ||
{{- end -}} | ||
{{- if .Values.controlPlane.distro.k8s.enabled -}} | ||
k8s | ||
{{- $distros = add1 $distros -}} | ||
{{- end -}} | ||
{{- if .Values.controlPlane.distro.eks.enabled -}} | ||
eks | ||
{{- $distros = add1 $distros -}} | ||
{{- end -}} | ||
{{- if eq $distros 0 -}} | ||
k3s | ||
{{- else if gt $distros 1 -}} | ||
{{- fail "you can only enable one distro at the same time" -}} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{- define "vcluster.controlPlane.image" -}} | ||
{{- if .Values.controlPlane.statefulSet.image.tag -}} | ||
{{ .Values.controlPlane.advanced.defaultImageRegistry }}{{ .Values.controlPlane.statefulSet.image.repository }}:{{ .Values.controlPlane.statefulSet.image.tag }} | ||
{{- else -}} | ||
{{ .Values.controlPlane.advanced.defaultImageRegistry }}{{ .Values.controlPlane.statefulSet.image.repository }}:{{ .Chart.Version }}-pro | ||
{{- end -}} | ||
{{- end -}} |
Oops, something went wrong.