Skip to content

Instantly share code, notes, and snippets.

@cari-lynn
Last active July 16, 2020 19:09
Show Gist options
  • Save cari-lynn/698152d8c1b2b716ff13fe348b420b82 to your computer and use it in GitHub Desktop.
Save cari-lynn/698152d8c1b2b716ff13fe348b420b82 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress1
annotations: ~
#@ load("@ytt:overlay", "overlay")
#@ def func(_, l, r):
#@ if (l == None):
#@ return True
#@ end
#@ return False
#@ end
#@overlay/match by=overlay.subset({"metadata":{"name":"example-ingress1"}})
---
metadata:
#@overlay/match by=func
#@overlay/remove
annotations:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment