-
Notifications
You must be signed in to change notification settings - Fork 23
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 #530 from jorgemoralespou/lookup-svc-2
Lookup service configuration.
- Loading branch information
Showing
129 changed files
with
2,210 additions
and
46,204 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,5 @@ workshopAnalytics: | |
websiteStyling: | ||
#@overlay/remove | ||
imagePuller: | ||
#@overlay/remove | ||
lookupService: |
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
27 changes: 0 additions & 27 deletions
27
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/custom/10-defaults.yaml
This file was deleted.
Oops, something went wrong.
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
10 changes: 10 additions & 0 deletions
10
...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 |
---|---|---|
@@ -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() |
26 changes: 26 additions & 0 deletions
26
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/custom/90-overlays.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,26 @@ | ||
#@ load("@ytt:data", "data") | ||
#@ load("@ytt:overlay", "overlay") | ||
|
||
#@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, "settings"): | ||
settings: #@ data.values.clusterPackages.contour.settings | ||
cert-manager: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "cert-manager") and hasattr(data.values.clusterPackages["cert-manager"], "settings"): | ||
settings: #@ data.values.clusterPackages["cert-manager"].settings | ||
external-dns: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "external-dns") and hasattr(data.values.clusterPackages["external-dns"], "settings"): | ||
settings: #@ data.values.clusterPackages["external-dns"].settings | ||
certs: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "certs") and hasattr(data.values.clusterPackages.certs, "settings"): | ||
settings: #@ data.values.clusterPackages.certs.settings | ||
kyverno: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "kyverno") and hasattr(data.values.clusterPackages.kyverno, "settings"): | ||
settings: #@ data.values.clusterPackages.kyverno.settings | ||
kapp-controller: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "kapp-controller") and hasattr(data.values.clusterPackages["kapp-controller"], "settings"): | ||
settings: #@ data.values.clusterPackages["kapp-controller"].settings | ||
educates: | ||
#@ if/end hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, "educates") and hasattr(data.values.clusterPackages["educates"], "settings"): | ||
settings: #@ data.values.clusterPackages["educates"].settings |
36 changes: 36 additions & 0 deletions
36
...staller/bundle/config/ytt/_ytt_lib/infrastructure/custom/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: {} |
3 changes: 2 additions & 1 deletion
3
...l-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/custom/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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Custom | ||
For custom we only accept the clusterPackages configuration. | ||
All the other configuration will be discarded. | ||
There's no default configuration being applied. | ||
There's no default configuration being applied. | ||
Whatever main config is provided it will be discarded |
4 changes: 4 additions & 0 deletions
4
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/custom/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,4 @@ | ||
load("@ytt:data", "data") | ||
|
||
enabledByDefaultPackagesList = [ | ||
] |
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
18 changes: 18 additions & 0 deletions
18
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/custom/functions.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,18 @@ | ||
load("@ytt:data", "data") | ||
load("defaults.star", "enabledByDefaultPackagesList") | ||
|
||
def isClusterPackageEnableByDefault(package): | ||
return package in enabledByDefaultPackagesList | ||
end | ||
|
||
def isClusterPackageEnabled(package): | ||
if hasattr(data.values, "clusterPackages") and hasattr(data.values.clusterPackages, package) and hasattr(data.values.clusterPackages[package], "enabled"): | ||
return data.values.clusterPackages[package].enabled | ||
else: | ||
return package in enabledByDefaultPackagesList | ||
end | ||
end | ||
|
||
def isClusterPackageExplicitDisabled(package): | ||
return not isClusterPackageEnabled(package) | ||
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 |
---|---|---|
|
@@ -44,3 +44,5 @@ workshopAnalytics: | |
websiteStyling: | ||
#@overlay/remove | ||
imagePuller: | ||
#@overlay/remove | ||
lookupService: |
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
10 changes: 10 additions & 0 deletions
10
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/eks/12-overlays.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:overlay", "overlay") | ||
|
||
#@overlay/match-child-defaults missing_ok=True | ||
clusterPackages: | ||
educates: | ||
settings: | ||
clusterIngress: | ||
tlsCertificateRef: | ||
namespace: projectcontour | ||
name: educateswildcard |
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
36 changes: 36 additions & 0 deletions
36
.../installer/bundle/config/ytt/_ytt_lib/infrastructure/eks/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: {} |
10 changes: 10 additions & 0 deletions
10
carvel-packages/installer/bundle/config/ytt/_ytt_lib/infrastructure/eks/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,10 @@ | ||
load("@ytt:data", "data") | ||
|
||
enabledByDefaultPackagesList = [ | ||
"cert-manager", | ||
"contour", | ||
"external-dns", | ||
"certs", | ||
"kyverno", | ||
"educates" | ||
] |
Oops, something went wrong.