Created
February 28, 2021 05:31
-
-
Save making/44747e4e24639efb12cf382cb5dd0508 to your computer and use it in GitHub Desktop.
フラグを有効にした場合のみリソースを追加したい
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: demo | |
name: demo | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: demo | |
template: | |
metadata: | |
labels: | |
app: demo | |
spec: | |
containers: | |
- image: ghcr.io/making/hello-tanzu | |
name: hello-tanzu |
This file contains hidden or 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:data", "data") | |
#@ if data.values.ingress.enabled: | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
spec: {} | |
#@ end |
This file contains hidden or 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 | |
--- | |
ingress: | |
enabled: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment