Created
February 12, 2021 15:28
-
-
Save bonzofenix/df629b98bdd9681b941cd644d563a523 to your computer and use it in GitHub Desktop.
Add private domains to cf-for-k8s
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
#@ load("@ytt:overlay", "overlay") | |
#@ load("@ytt:data", "data") | |
#@overlay/match by=overlay.subset({"kind": "Gateway", "metadata": {"name": "istio-ingressgateway"}}) | |
--- | |
spec: | |
servers: | |
#@overlay/match by=overlay.subset({"port": {"name": "https-workloads" }}) | |
- hosts: | |
#@ for/end private_domain in data.values.private_domains: | |
#@overlay/append | |
- #@ 'cf-workloads/*.' + private_domain | |
#@overlay/append | |
- #@ 'cf-workloads/' + private_domain | |
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
#@data/values | |
#@overlay/match-child-defaults missing_ok=True | |
--- | |
..... | |
private_domains: | |
- "mydomain.com" | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment