Commit af75acc
committed
Support configuration env variable replacement
We want to support environment variable replacement in the configuration
similarly to how it is done in llama-stack.
Example use case / motivation:
The config, which since 3f7ed75 can
contain a password to a database, requires users to move their entire
config to a Kubernetes secret, as it now contains sensitive information,
rather than a configmap. If instead we supported environment variable
replacement, users could keep their config in a configmap and just set
the password in a secret as k8s allows you to load secret values as
environment variables in pods.
Since users of lightspeed-stack are already familiar with the syntax
for environment variable replacement from llama-stack, we can use the
same function from llama-stack to handle this.1 parent a59de96 commit af75acc
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
0 commit comments