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:overlay", "overlay") | |
#@ load("@ytt:toml", "toml") | |
#@ def app_config_secret(): | |
kind: Secret | |
metedata: | |
name: app-config | |
#@ end | |
#@ def add_locale(conf_str): |
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: Secret | |
metedata: | |
name: app-config | |
stringData: | |
app.conf: | | |
[Global] | |
user = FOO\bar |
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: Widget | |
metadata: | |
name: foo-with-more-than-all-labels | |
labels: | |
label0: value0 | |
label1: value1 | |
label2: value2 | |
label3: value3 | |
label4: value4 | |
--- |
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: Widget | |
metadata: | |
name: foo-with-more-than-all-labels | |
labels: | |
label0: value0 | |
label1: value1 | |
label2: value2 | |
label3: value3 | |
label4: value4 | |
--- |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluent-bit-config | |
namespace: fluent-bit | |
labels: | |
k8s-app: fluent-bit | |
data: |
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
#! Example of how one could overlay a specific child node of some YAML with an ad-hoc | |
#! set of values (e.g. a ConfigMap's payload). | |
#! | |
#! Features: | |
#! - custom/overlaying value can introduce new keys | |
#! - detects if the value of the named key is a string or YAML (and retains that format | |
#! after the edit. | |
#! - regardless of the format of the value of "key", parses as YAML and overlays on that. | |
#@ load("@ytt:overlay", "overlay") |
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:overlay", "overlay") | |
#@ load("@ytt:data", "data") | |
#@ def tekton_pipeline_configmap(): | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: feature-flags | |
namespace: tekton-pipelines | |
#@ end |
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") | |
--- | |
foo: #@ data.values |
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
--- | |
id: 1 | |
type: book | |
meta: | |
format: .mobi | |
modified: false | |
--- | |
id: 2 | |
type: book | |
meta: |
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:overlay", "overlay") | |
#@overlay/match by=overlay.subset({"kind": "ClusterRole", "metadata":{"name":"my-meow"}}) | |
--- | |
rules: | |
#@overlay/match by=overlay.all | |
- | |
#@overlay/assert via=lambda given,expects: (given[0]==expects[0], "Given '{}', expects '{}'".format(given[0],expects[0])) | |
resourceNames: | |
#@overlay/match by=overlay.all |
NewerOlder