Last active
April 19, 2023 17:49
-
-
Save pivotaljohn/8d5b40c29c870929fb7532e0692756b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Secret | |
metedata: | |
name: app-config | |
stringData: | |
app.conf: | | |
[Global] | |
user = FOO\bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ 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