Skip to content

Instantly share code, notes, and snippets.

@cari-lynn
Last active July 16, 2020 19:17
Show Gist options
  • Save cari-lynn/69b02db9a0241b05113cb845466344d6 to your computer and use it in GitHub Desktop.
Save cari-lynn/69b02db9a0241b05113cb845466344d6 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress1
annotations: ~
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"metadata":{"annotations": None}})
---
metadata:
#@overlay/remove
annotations:
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.all,expects="1+"
---
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
kapp.k14s.io/change-group: install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment