Skip to content

Commit

Permalink
Fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Dec 6, 2023
1 parent 5a653d9 commit 3eeddbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ variable name:
* `UDL_WRITEFILE[FILENAME]`: Writes a file e.g. `UDL_WRITEFILE[/etc/myapp/config.json]` with a value of `{"whatever": ["hello"]}`.
* `UDL_WRITEB64FILE[FILENAME]`: Writes a base64 encoded value to a file e.g. `UDL_WRITEB64FILE[/etc/myapp/config.json]` with a value of `e3doYXRldmVyOiBbaGVsbG9dfQo=`.
* `UDL_SETVALUE[FILENAME][KEY]`: Sets a value in a config file e.g. `UDL_SETVALUE[/etc/myapp/config.json][entry2:entry3]` or `UDL_SETVALUE[/etc/myapp/config.yaml][entry2:entry3:0]` with a value of `newvalue`.
* `UDL_SKIP_EMPTY_SETVALUE[FILENAME][KEY]`: Sets a value in a config file e.g. `UDL_SETVALUE[/etc/myapp/config.json][entry2:entry3]` or `UDL_SETVALUE[/etc/myapp/config.yaml][entry2:entry3:0]` with a value of `newvalue` if `newvalue` is not empty of whitespace.
* `UDL_SKIPEMPTY_SETVALUE[FILENAME][KEY]`: Sets a value in a config file e.g. `UDL_SETVALUE[/etc/myapp/config.json][entry2:entry3]` or `UDL_SETVALUE[/etc/myapp/config.yaml][entry2:entry3:0]` with a value of `newvalue` if `newvalue` is not empty of whitespace.

The second style is useful for Kubernetes, which only supports alphanumberic characters, the dot, the dash, and the
underscore in environment variable names. The filename and key is located in the environment variable value:
Expand Down

0 comments on commit 3eeddbb

Please sign in to comment.