Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion peerdb-catalog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# 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.9.0
version: 0.9.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
2 changes: 1 addition & 1 deletion peerdb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type: application
# 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.9.0
version: 0.9.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
3 changes: 3 additions & 0 deletions peerdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Install PeerDB along with Temporal.
| global.peerdb.lowCost.nodeSelector | object | `{}` | Node selector that will be applied to all the lowCost=true peerdb components additively |
| global.peerdb.lowCost.tolerations | list | `[]` | Tolerations that will be applied to all the lowCost=true peerdb components additively |
| peerdb.credentials.password | string | `"peerdb"` | |
| peerdb.credentials.existingSecret | string | `""` | Specify an existing Secret for the peerdb password. Secret must contain SERVER_PEERDB_PASSWORD key. Takes precedence over peerdb.credentials.password |
| peerdb.deployment.annotations | object | `{}` | annotations that will be applied to the peerdb-server deployment, NOT the pods |
| peerdb.deployment.labels | object | `{}` | labels that will be applied to the peerdb-server deployment, NOT the pods |
| peerdb.enabled | bool | `true` | |
Expand Down Expand Up @@ -182,7 +183,9 @@ Install PeerDB along with Temporal.
| peerdb.service.type | string | `"ClusterIP"` | |
| peerdb.version | string | `"stable-v0.30.9"` | This version is overridden by .env file if the install_peerdb.sh script is being used In that case, either update the .env file or override it via values.customer.yaml when installing |
| peerdbUI.credentials.nexauth_secret | string | `""` | |
| peerdbUI.credentials.nexauth_ExistingSecret | string | `""` | Specify an existing Secret for the peerdbUI nexauth secret. Secret must contain UI_NEXTAUTH_SECRET key. Takes precedence over peerdbUI.credentials.nexauth_secret |
| peerdbUI.credentials.password | string | `"_PEERDB_PASSWORD_"` | |
| peerdbUI.credentials.passwordExistingSecret | string | `""` | Specify an existing Secret for the peerdbUI password. Secret must contain UI_PEERDB_PASSWORD key. Takes precedence over peerdbUI.credentials.password |
| peerdbUI.deployment.annotations | object | `{}` | annotations that will be applied to the peerdbUI deployment, NOT the pods |
| peerdbUI.deployment.labels | object | `{}` | labels that will be applied to the peerdbUI deployment, NOT the pods |
| peerdbUI.enabled | bool | `true` | |
Expand Down
4 changes: 4 additions & 0 deletions peerdb/templates/peerdb-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ spec:
valueFrom:
secretKeyRef:
key: SERVER_PEERDB_PASSWORD
{{- if and .Values.peerdb.credentials.password (not .Values.peerdb.credentials.existingSecret) }}
name: peerdb-server-ui-secret
{{- else if .Values.peerdb.credentials.existingSecret }}
name: {{ .Values.peerdb.credentials.existingSecret }}
{{- end }}
# flow server config
- name: PEERDB_FLOW_SERVER_ADDRESS
value: "http://flow-api:{{ .Values.flowApi.service.port }}"
Expand Down
8 changes: 8 additions & 0 deletions peerdb/templates/peerdb-server-ui-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{{- if or (and .Values.peerdbUI.credentials.password (not .Values.peerdbUI.credentials.passwordExistingSecret)) (and .Values.peerdb.credentials.password (not .Values.peerdb.credentials.existingSecret)) (not .Values.peerdbUI.credentials.nexauth_ExistingSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: peerdb-server-ui-secret
labels:
{{- include "peerdb.common.labels" . | nindent 4 }}
stringData:
{{- if and .Values.peerdbUI.credentials.password (not .Values.peerdbUI.credentials.passwordExistingSecret) }}
UI_PEERDB_PASSWORD: '{{ .Values.peerdbUI.credentials.password }}'
{{- end }}
{{- if and .Values.peerdb.credentials.password (not .Values.peerdb.credentials.existingSecret) }}
SERVER_PEERDB_PASSWORD: '{{ .Values.peerdb.credentials.password }}'
{{- end }}
{{- if not .Values.peerdbUI.credentials.nexauth_ExistingSecret }}
UI_NEXTAUTH_SECRET: '{{ .Values.peerdbUI.credentials.nexauth_secret | default (randAlphaNum 60) }}'
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions peerdb/templates/peerdb-ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,20 @@ spec:
valueFrom:
secretKeyRef:
key: UI_PEERDB_PASSWORD
{{- if and .Values.peerdbUI.credentials.password (not .Values.peerdbUI.credentials.passwordExistingSecret) }}
name: peerdb-server-ui-secret
{{- else if .Values.peerdbUI.credentials.passwordExistingSecret }}
name: {{ .Values.peerdbUI.credentials.passwordExistingSecret }}
{{- end }}
- name: NEXTAUTH_SECRET
valueFrom:
secretKeyRef:
key: UI_NEXTAUTH_SECRET
{{- if not .Values.peerdbUI.credentials.nexauth_ExistingSecret }}
name: peerdb-server-ui-secret
{{- else }}
name: {{ .Values.peerdbUI.credentials.nexauth_ExistingSecret }}
{{- end }}
- name: NEXTAUTH_URL
value: {{ .Values.peerdbUI.service.url }}
{{- with .Values.peerdbUI.extraEnv -}}
Expand Down
6 changes: 6 additions & 0 deletions peerdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ peerdbUI:
enabled: true
credentials:
password: _PEERDB_PASSWORD_
# If specified, password above is ignored. Must have UI_PEERDB_PASSWORD key.
# passwordExistingSecret: pw-existing-secret-name
nexauth_secret: ''
# If specified, nexauth_secret is ignored. Must have UI_NEXTAUTH_SECRET key.
# nexauth_ExistingSecret: na-existing-secret-name
extraEnv: []
lowCost: true
pods:
Expand Down Expand Up @@ -316,6 +320,8 @@ peerdb:
logDir: "/var/log/peerdb"
credentials:
password: "peerdb"
# If specified, password above is ignored. Must have SERVER_PEERDB_PASSWORD key.
# existingSecret: existing-secret-name
resources:
requests:
cpu: 0.1
Expand Down
Loading