Skip to content

Instantly share code, notes, and snippets.

@dlinsley
Last active November 30, 2021 21:35
Show Gist options
  • Save dlinsley/9e3a057828f261a0a656d51197e21ae7 to your computer and use it in GitHub Desktop.
Save dlinsley/9e3a057828f261a0a656d51197e21ae7 to your computer and use it in GitHub Desktop.
ytt overlays for kapp annotations
#@ load("@ytt:overlay","overlay")
#@overlay/match by=overlay.subset({"kind":"StatefulSet"})
---
spec:
volumeClaimTemplates:
#@overlay/match by=overlay.all, expects="1+"
-
metadata:
#@overlay/match missing_ok=True
annotations:
kapp.k14s.io/owned-for-deletion: ""
#@ load("@ytt:overlay", "overlay")
#@ config_maps = overlay.subset({"kind": "ConfigMap"})
#@ secrets = overlay.subset({"kind": "Secret"})
#@overlay/match by=overlay.or_op(config_maps, secrets)
---
metadata:
#@overlay/match missing_ok=True
annotations:
kapp.k14s.io/versioned: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment