Skip to content

Instantly share code, notes, and snippets.

@bmoussaud
Created December 1, 2021 17:40
Show Gist options
  • Save bmoussaud/fad36a21fae8ed321b27d5a84f0e64a9 to your computer and use it in GitHub Desktop.
Save bmoussaud/fad36a21fae8ed321b27d5a84f0e64a9 to your computer and use it in GitHub Desktop.
#@ load("@ytt:data", "data")
#@ load("@ytt:template", "template")
#@yaml/text-templated-strings
#@ val1 = "port:(@= str(data.values.service.port) @)"
#@ val2 = "val2"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: myconfig
data:
zzz0: "port:(@= str(data.values.service.port) @)"
zzz1: #@ val1
#@data/values
---
service:
namespace: benoit
name: dogs
port: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment