Skip to content

Instantly share code, notes, and snippets.

@prembhaskal
Created March 22, 2024 05:59
Show Gist options
  • Save prembhaskal/77745d916d14df838969d217b1304f24 to your computer and use it in GitHub Desktop.
Save prembhaskal/77745d916d14df838969d217b1304f24 to your computer and use it in GitHub Desktop.
#@ load("@ytt:data", "data")
---
top: #@ data.values
#! For best results, declare functions *before* the schema document.
#@ def default_dbs():
- name: core
host: coredb
user: app1
- name: audit
host: metrics.svc.local
user: observer
#@ end
#@data/values-schema
---
#@schema/default ["apps.example.com", "gateway.example.com"]
app_domains:
- ""
#@schema/default default_dbs()
databases:
- name: ""
adapter: postgresql
host: ""
port: 5432
user: admin
secretRef:
name: ""
#@schema/nullable
aws:
username: admin
password: "1234"
name: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment