Skip to content

Commit 7513f0d

Browse files
committed
fix(secrets): apply prior secrets fix to syncserverdb
1 parent e64514c commit 7513f0d

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

charts/fx-syncstorage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.8
18+
version: 0.1.9
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/fx-syncstorage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fx-syncstorage
22

3-
![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: syncstorage-rs-mysql-0.18.2](https://img.shields.io/badge/AppVersion-syncstorage--rs--mysql--0.18.2-informational?style=flat-square)
3+
![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: syncstorage-rs-mysql-0.18.2](https://img.shields.io/badge/AppVersion-syncstorage--rs--mysql--0.18.2-informational?style=flat-square)
44

55
Helm chart for Mozilla's Rust based Sync server for Firefox data synchronization.
66

charts/fx-syncstorage/templates/secret_syncserverdb.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- if (include "fx-syncstorage.autogenerateSyncDb" .) }}
2+
{{- $secret := (lookup "v1" "Secret" .Release.Namespace .Values.syncserverdb.auth.existingSecret) -}}
23
apiVersion: v1
34
kind: Secret
45
metadata:
@@ -10,6 +11,14 @@ metadata:
1011
helm.sh/resource-policy: keep
1112
{{- end }}
1213
data:
13-
mysql-root-password: {{ randAlphaNum 20 | b64enc | quote }}
14-
mysql-password: {{ randAlphaNum 20 | b64enc | quote }}
15-
{{- end }}
14+
mysql-root-password: {{- if $secret }}
15+
{{ index $secret.data "mysql-root-password" }}
16+
{{- else }}
17+
{{ randAlphaNum 20 | b64enc | quote }}
18+
{{- end }}
19+
mysql-password: {{- if $secret }}
20+
{{ index $secret.data "mysql-password" }}
21+
{{- else }}
22+
{{ randAlphaNum 20 | b64enc | quote }}
23+
{{- end }}
24+
{{- end }}

0 commit comments

Comments
 (0)