Skip to content

Commit

Permalink
Merge pull request #155 from bcgov/bug/helm-secret
Browse files Browse the repository at this point in the history
Add random default for object storage secret
  • Loading branch information
kyle1morel authored Sep 9, 2024
2 parents 6708aee + 0a957ab commit 9c92165
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/pcns/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: nr-permitconnect-navigator-service
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.13
version: 0.0.14
kubeVersion: ">= 1.13.0"
description: PermitConnect Navigator Service
# A chart can be either an 'application' or a 'library' chart.
Expand Down
2 changes: 1 addition & 1 deletion charts/pcns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nr-permitconnect-navigator-service

![Version: 0.0.13](https://img.shields.io/badge/Version-0.0.13-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square)
![Version: 0.0.14](https://img.shields.io/badge/Version-0.0.14-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square)

PermitConnect Navigator Service

Expand Down
6 changes: 4 additions & 2 deletions charts/pcns/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
{{- $chesUsername := (randAlphaNum 32) }}
{{- $oPassword := (randAlphaNum 32) }}
{{- $oUsername := (randAlphaNum 32) }}
{{- $osPassword := (randAlphaNum 32) }}
{{- $osUsername := (randAlphaNum 32) }}
{{- $ssoPassword := (randAlphaNum 32) }}
{{- $ssoUsername := (randAlphaNum 32) }}

Expand Down Expand Up @@ -105,8 +107,8 @@ metadata:
labels: {{ include "pcns.labels" . | nindent 4 }}
type: kubernetes.io/basic-auth
data:
password: {{ .Values.objectStorageSecretOverride.password | b64enc | quote }}
username: {{ .Values.objectStorageSecretOverride.username | b64enc | quote }}
password: {{ .Values.objectStorageSecretOverride.password | default $osPassword | b64enc | quote }}
username: {{ .Values.objectStorageSecretOverride.username | default $osUsername | b64enc | quote }}
{{- end }}
{{- if not $oSecret }}
---
Expand Down

0 comments on commit 9c92165

Please sign in to comment.