Skip to content

Instantly share code, notes, and snippets.

@pivotaljohn
Created March 30, 2021 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pivotaljohn/bfecca9dfb22026390fc86550080dc45 to your computer and use it in GitHub Desktop.
Save pivotaljohn/bfecca9dfb22026390fc86550080dc45 to your computer and use it in GitHub Desktop.
---
kind: ConfigMap
metadata:
name: habor-core-ver-43
spec:
original_stuff: 1
#@ load("@ytt:overlay", "overlay")
#@ def name_startswith(name):
#@ return lambda idx, left, right: left["metadata"]["name"].startswith(name)
#@ end
#@ is_config_map = overlay.subset({"kind": "ConfigMap"})
#@ habor_configmap = overlay.and_op(is_config_map, name_startswith("habor"))
#@overlay/match by=habor_configmap,expects="1+"
---
spec:
#@overlay/match missing_ok=True
additional_stuff: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment