-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix ambassador bug * Add updates to db setup job and various small updates * Update chart versions
- Loading branch information
Showing
48 changed files
with
253 additions
and
159 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
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
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
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
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
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
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,34 @@ | ||
{{/* | ||
Helper function to generate or retrieve a secret value. | ||
This function takes the following parameters: | ||
- `value` (optional): The secret value to use if it's not empty. If this parameter is set, the function will return this value without looking up or generating a new one. | ||
- `secretName` (optional): The name of the secret that contains the value. If `value` is not set, the function will attempt to retrieve the value from this secret. If this parameter is not set or the secret does not exist, a new value will be generated. | ||
- `secretKey` (optional): The key in the secret that contains the value. If `value` is not set and `secretName` is set, the function will attempt to retrieve the value from this key in the secret. If this parameter is not set or the key does not exist in the secret, a new value will be generated. | ||
- `secretLength` (optional, default 20): The length of the value to generate if it needs to be generated. | ||
Usage: | ||
{{ include "common.getOrGenSecret" (list "mysecretvalue" "mysecret" "mysecretkey" 16 .) }} | ||
*/}} | ||
{{- define "common.getOrGenSecret" -}} | ||
{{- $value := index . 0 -}} | ||
{{- $secretName := index . 1 -}} | ||
{{- $secretKey := index . 2 -}} | ||
{{- $secretLength := index . 3 -}} | ||
{{- $nameSpace := index . 4 -}} | ||
{{- if $value -}} | ||
{{- $value = $value | b64enc -}} | ||
{{- end -}} | ||
{{- if not $value -}} | ||
{{- if $secret := lookup "v1" "Secret" $nameSpace $secretName -}} | ||
{{- if hasKey $secret.data $secretKey -}} | ||
{{- $value = index $secret.data $secretKey -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- if not $value -}} | ||
{{- $value = randAlphaNum $secretLength -}} | ||
{{- $value = $value | b64enc -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- $value -}} | ||
{{- end -}} |
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
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
Oops, something went wrong.