encoding some YAML

Home   »   encoding some YAML

---
kind: ConfigMap
data: {}
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")
#@ load("@ytt:yaml", "yaml")


#@overlay/match by=overlay.subset({"kind":"ConfigMap"})
---
data:
  #@overlay/match missing_ok=True
  config.yaml: #@ yaml.encode(data.values.config_file_contents)
  
#@data/values
---
config_file_contents:
  server:
    type: foo
    name: bar
  timeout: 5s

Leave a Reply

Your email address will not be published. Required fields are marked *