Skip to content

Instantly share code, notes, and snippets.

@pivotaljohn
Last active April 19, 2023 17:49
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 pivotaljohn/8d5b40c29c870929fb7532e0692756b1 to your computer and use it in GitHub Desktop.
Save pivotaljohn/8d5b40c29c870929fb7532e0692756b1 to your computer and use it in GitHub Desktop.
kind: Secret
metedata:
name: app-config
stringData:
app.conf: |
[Global]
user = FOO\bar
#@ load("@ytt:overlay", "overlay")
#@ def app_config_secret():
kind: Secret
metedata:
name: app-config
#@ end
#@overlay/match by=overlay.subset(app_config_secret())
---
stringData:
#@overlay/replace via=lambda old, new: old.replace("FOO\\bar", "\"FOO\\\\bar\"")
app.conf:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment