Skip to content

Instantly share code, notes, and snippets.

@jtigger
Last active September 8, 2020 03:16
Show Gist options
  • Save jtigger/e0948851963c364f9cde80afb3c89ae7 to your computer and use it in GitHub Desktop.
Save jtigger/e0948851963c364f9cde80afb3c89ae7 to your computer and use it in GitHub Desktop.
#@ load("@ytt:data", "data")
apps:
#@ for app in data.values.traefik.ingress_routes:
- #@ app
#@ end
#@data/values
---
traefik:
ingress_routes:
- name: foo
insecure: true
- name: bar
insecure: false
- name: ree
#@ load("@ytt:overlay", "overlay")
#@data/values
---
traefik:
ingress_routes:
#@overlay/match by=overlay.not_op(overlay.subset({"insecure": True})), expects="0+"
-
#@overlay/match missing_ok=True
insecure: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment