-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Secret Environment Variables (#95)
* Feat: Private repo auth header via secrets * Add optional `remoteAuthHeaders` value * Populating the value creates a Kubernetes Secret * `envFrom` is used to inject secret keys/values as environment variables * `secretEnvVars` instead of `remoteAuthHeaders` * Make it more generic so you can inject sensitive env vars via k8s secret * Update Readme, rename env secret * Add checksum for env secret * Add checksum of env secret to annotations * Change in checksum triggers deployment rollout
- Loading branch information
Showing
5 changed files
with
30 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if .Values.secretEnvVars }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "verdaccio.fullname" . }}-env | ||
labels: | ||
{{- include "verdaccio.labels" . | nindent 4 }} | ||
stringData: | ||
{{- range $header, $value := .Values.secretEnvVars }} | ||
{{ printf "%s" (upper (replace "-" "_" $header)) }}: {{ tpl (toString $value) $ }} | ||
{{- end }} | ||
{{- 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