forked from educates/educates-training-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,592 additions
and
519 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
...s/installer/bundle/config/ytt/_ytt_lib/infrastructure/custom/80-copy-educates-config.yaml
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("educates.lib.yaml", "copy_all_educates_values") | ||
#@ load("educates.lib.yaml", "copy_core_educates_values") | ||
|
||
#! This copies user provided values for the custom infrastructure provider. | ||
#! This copies only core Educates values. | ||
|
||
#! #@overlay/match-child-defaults missing_ok=True | ||
#! clusterPackages: | ||
#! educates: | ||
#! settings: #@ copy_all_educates_values() | ||
#@overlay/match-child-defaults missing_ok=True | ||
clusterPackages: | ||
educates: | ||
settings: #@ copy_core_educates_values() |
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
48 changes: 48 additions & 0 deletions
48
...staller/bundle/config/ytt/_ytt_lib/infrastructure/minikube/00-remove-toplevel-values.yaml
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,48 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
|
||
#@overlay/remove | ||
debug: | ||
|
||
#@overlay/remove | ||
localKindCluster: | ||
#@overlay/remove | ||
localDNSResolver: | ||
|
||
#@overlay/remove | ||
clusterInfrastructure: | ||
|
||
#@overlay/remove | ||
imageRegistry: | ||
#@overlay/remove | ||
version: | ||
#@overlay/remove | ||
imageVersions: | ||
#@overlay/remove | ||
clusterRuntime: | ||
#@overlay/remove | ||
clusterIngress: | ||
#@overlay/remove | ||
sessionCookies: | ||
#@overlay/remove | ||
clusterStorage: | ||
#@overlay/remove | ||
clusterSecrets: | ||
#@overlay/remove | ||
clusterSecurity: | ||
#@overlay/remove | ||
workshopSecurity: | ||
#@overlay/remove | ||
trainingPortal: | ||
#@overlay/remove | ||
dockerDaemon: | ||
#@overlay/remove | ||
clusterNetwork: | ||
#@overlay/remove | ||
workshopAnalytics: | ||
#@overlay/remove | ||
websiteStyling: | ||
#@overlay/remove | ||
imagePuller: | ||
#@overlay/remove | ||
lookupService: |
40 changes: 40 additions & 0 deletions
40
.../bundle/config/ytt/_ytt_lib/infrastructure/minikube/10-default-settings-for-provider.yaml
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,40 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("functions.star", "isClusterPackageEnableByDefault") | ||
|
||
#! This file contains default values for the custom infrastructure provider. | ||
#! These are the values that will be set if not overridden by the user. | ||
|
||
#@overlay/match-child-defaults missing_ok=True | ||
#@overlay/replace | ||
clusterPackages: | ||
contour: | ||
enabled: #@ isClusterPackageEnableByDefault("contour") | ||
settings: | ||
infraProvider: minikube | ||
contour: | ||
replicas: 1 | ||
configFileContents: | ||
defaultHttpVersions: | ||
- "HTTP/1.1" | ||
service: | ||
type: ClusterIP | ||
useHostPorts: true | ||
cert-manager: | ||
enabled: #@ isClusterPackageEnableByDefault("cert-manager") | ||
settings: {} | ||
external-dns: | ||
enabled: #@ isClusterPackageEnableByDefault("external-dns") | ||
settings: {} | ||
certs: | ||
enabled: #@ isClusterPackageEnableByDefault("certs") | ||
settings: {} | ||
kyverno: | ||
enabled: #@ isClusterPackageEnableByDefault("kyverno") | ||
settings: {} | ||
kapp-controller: | ||
enabled: #@ isClusterPackageEnableByDefault("kapp-controller") | ||
settings: {} | ||
educates: | ||
enabled: #@ isClusterPackageEnableByDefault("educates") | ||
settings: {} |
13 changes: 13 additions & 0 deletions
13
.../installer/bundle/config/ytt/_ytt_lib/infrastructure/minikube/50-packages-enablement.yaml
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,13 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
|
||
#! This enables packages based on the user input | ||
|
||
#@overlay/match-child-defaults missing_ok=True | ||
clusterPackages: | ||
contour: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "contour") and hasattr(data.values.clusterPackages.contour, "enabled"): | ||
enabled: #@ data.values.clusterPackages.contour.enabled | ||
kyverno: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "kyverno") and hasattr(data.values.clusterPackages.kyverno, "enabled"): | ||
enabled: #@ data.values.clusterPackages.kyverno.enabled |
10 changes: 10 additions & 0 deletions
10
...installer/bundle/config/ytt/_ytt_lib/infrastructure/minikube/80-copy-educates-config.yaml
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,10 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("educates.lib.yaml", "copy_all_educates_values") | ||
|
||
#! This copies user provided values for the custom infrastructure provider. | ||
|
||
#@overlay/match-child-defaults missing_ok=True | ||
clusterPackages: | ||
educates: | ||
settings: #@ copy_all_educates_values() |
36 changes: 36 additions & 0 deletions
36
...aller/bundle/config/ytt/_ytt_lib/infrastructure/minikube/99-remove-settings-disabled.yaml
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,36 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("functions.star", "isClusterPackageExplicitDisabled") | ||
|
||
#! This removes settings for disabled packages | ||
|
||
#@overlay/match-child-defaults missing_ok=True | ||
clusterPackages: | ||
contour: | ||
#@ if/end isClusterPackageExplicitDisabled("contour"): | ||
#@overlay/replace | ||
settings: {} | ||
cert-manager: | ||
#@ if/end isClusterPackageExplicitDisabled("cert-manager"): | ||
#@overlay/replace | ||
settings: {} | ||
external-dns: | ||
#@ if/end isClusterPackageExplicitDisabled("external-dns"): | ||
#@overlay/replace | ||
settings: {} | ||
certs: | ||
#@ if/end isClusterPackageExplicitDisabled("certs"): | ||
#@overlay/replace | ||
settings: {} | ||
kyverno: | ||
#@ if/end isClusterPackageExplicitDisabled("kyverno"): | ||
#@overlay/replace | ||
settings: {} | ||
kapp-controller: | ||
#@ if/end isClusterPackageExplicitDisabled("kapp-controller"): | ||
#@overlay/replace | ||
settings: {} | ||
#! educates: | ||
#! #@ if/end isClusterPackageExplicitDisabled("educates"): | ||
#! #@overlay/replace | ||
#! settings: {} |
4 changes: 4 additions & 0 deletions
4
...packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/minikube/README.md
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,4 @@ | ||
# minikube | ||
By default, contour, kyverno and educates will be installed | ||
We only allow to enabling/disabling contour and kyverno | ||
We copy all educates main config to the clusterPackage |
7 changes: 7 additions & 0 deletions
7
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/minikube/defaults.star
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 @@ | ||
load("@ytt:data", "data") | ||
|
||
enabledByDefaultPackagesList = [ | ||
"contour", | ||
"kyverno", | ||
"educates" | ||
] |
Oops, something went wrong.