-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task: Make proxy chart accept keys from secrets (#65)
In addition this extends the chart to also accept environment variables in a list as well as building environment variables from existing secrets.
- Loading branch information
Christopher Kolstad
authored
Feb 14, 2023
1 parent
44a70d6
commit e979fee
Showing
5 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Adds environment variables | ||
env: | ||
- name: LOG_LEVEL | ||
value: info | ||
|
||
# adds environmentvars for existing secrets to the container via tpl function | ||
existingSecrets: | ||
- name: UNLEASH_SECRET_VALUE | ||
valueFrom: | ||
secretKeyRef: | ||
name: mysecret | ||
key: unleash | ||
|
||
proxy: | ||
serverHost: http://unleash:4242/api | ||
apiTokenSecret: | ||
enabled: true | ||
name: unleash-proxy-secret | ||
key: apiToken | ||
clientKeysSecret: | ||
enabled: true | ||
name: unleash-proxy-secret | ||
key: clientKeys |
11 changes: 11 additions & 0 deletions
11
charts/unleash-proxy/examples/withApiAndClientKeySecrets.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
proxy: | ||
serverHost: http://unleash:4242/api | ||
# Options | ||
apiTokenSecret: | ||
enabled: true | ||
name: unleash-proxy-secret | ||
key: apiToken | ||
clientKeysSecret: | ||
enabled: true | ||
name: unleash-proxy-secret | ||
key: clientKeys |
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
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