Skip to content

Instantly share code, notes, and snippets.

@schmurfy
Created July 12, 2021 13:54
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 schmurfy/75e7c6f5d7bd0a367ab3f7a7fc435895 to your computer and use it in GitHub Desktop.
Save schmurfy/75e7c6f5d7bd0a367ab3f7a7fc435895 to your computer and use it in GitHub Desktop.
ytt key/value mapping
#@ load("@ytt:data", "data")
#@ load("@ytt:struct", "struct")
env:
#@ for k in struct.decode(data.values.my_map):
- name: #@ k
value: #@ data.values.my_map[k]
#@ end
#@data/values-schema
---
my_map:
key1: value1
key2: value2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment