-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add htpasswd generator using helm. (#69)
* Add support for AWS LoadBalancer Controller * Bump chart version * Remove empty line changes * feat: Add htpasswd secret generator * Fix typo. * fix: typo, htpasswd-secret mounth path, htpasswd-secrets labels * fix: htpasswd mount path * fix: checksum/htpasswd-secret for deployment * fix: checksum/htpasswd-secret on deployment.yaml * doc: Add example in readme.md Co-authored-by: Sanoob Pattanath <[email protected]>
- Loading branch information
Showing
5 changed files
with
106 additions
and
41 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,14 @@ | ||
{{- if .Values.useSecretHtpasswd }} | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: {{ template "verdaccio.fullname" . }}-htpasswd | ||
labels: | ||
{{- include "verdaccio.labels" . | nindent 4 }} | ||
stringData: | ||
htpasswd: | | ||
{{- range $user := .Values.secrets.htpasswd }} | ||
{{ htpasswd $user.username $user.password | toString }} | ||
{{- 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