Last active
November 3, 2022 08:11
-
-
Save mamachanko/4840509cd73d0180ddc8083b902d66b8 to your computer and use it in GitHub Desktop.
carvel-ytt#758
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@ load("@ytt:overlay", "overlay") | |
#@ missing = ["{}.{}.yaml".format(data.values.namespace, data.values.project)] | |
#@ def complete(existing, _): | |
#@ return sorted(set(list(existing) + list(missing))) | |
#@ end | |
#@overlay/match by=overlay.subset({"kind": "Kustomization"}) | |
--- | |
#@overlay/replace via=complete | |
resources: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Kustomization | |
resources: | |
- amazing.coffee.yaml | |
- boring.stuff.yaml | |
- zebra.zulu.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
namespace: fun | |
project: mergemania |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment