Skip to content

Instantly share code, notes, and snippets.

@pivotaljohn
Created March 11, 2021 20:25
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/514800ba45089dbf5d9b7b562a3f063d to your computer and use it in GitHub Desktop.
Save pivotaljohn/514800ba45089dbf5d9b7b562a3f063d to your computer and use it in GitHub Desktop.
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"kind": "Service"})
---
metadata:
#@overlay/assert via=lambda l,r: (len(l) <= 20, "names must be 20 characters or less")
name:
---
kind: Service
apiVersion: v1
metadata:
name: a-service-with-a-really-long-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment