Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ spec:
if [ -f "/pulsar-manager/secrets/pulsar-jwt/TOKEN" ]; then
export TOKEN=$(cat /pulsar-manager/secrets/pulsar-jwt/TOKEN)
fi
if [ -f "/pulsar-manager/secrets/db-password/DB_PASSWORD" ]; then
export DB_PASSWORD=$(cat /pulsar-manager/secrets/db-password/DB_PASSWORD)
fi
if [ -f "/pulsar-manager/secrets/db-password/NEW_PASSWORD" ]; then
export NEW_PASSWORD=$(cat /pulsar-manager/secrets/db-password/NEW_PASSWORD)
fi
/pulsar-manager/entrypoint.sh
env:
- name: SPRING_CONFIGURATION_FILE
Expand All @@ -148,18 +154,10 @@ spec:
- name: GLOBAL_RESOURCE_READ_ONLY
value: "true"
{{- end }}
{{- if .Values.streamnative_console.configData.DB_PASSWORD }}
- name: DB_PASSWORD
value: {{ .Values.streamnative_console.configData.DB_PASSWORD | b64dec | quote }}
{{- end }}
{{- if hasSuffix "-all" .Values.images.streamnative_console.tag }}
- name: DB_BASE
value: sqlite
{{- end }}
{{- if .Values.streamnative_console.configData.NEW_PASSWORD }}
- name: NEW_PASSWORD
value: {{ .Values.streamnative_console.configData.NEW_PASSWORD | b64dec | quote }}
{{- end }}
- name: CONNECTOR_ENABLED
value: "{{ .Values.streamnative_console.configData.CONNECTOR_ENABLED | default "true" }}"
{{- with .Values.streamnative_console.extraEnv }}
Expand Down Expand Up @@ -299,6 +297,11 @@ spec:
mountPath: /pulsar-manager/secrets/pulsar-jwt
readOnly: true
{{- end }}
{{- if .Values.streamnative_console.dbPasswordSecret }}
- name: db-password-secret
mountPath: /pulsar-manager/secrets/db-password
readOnly: true
{{- end }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.streamnative_console.component }}-gateway"
image: "{{ .Values.images.streamnative_console.repository }}:{{ .Values.images.streamnative_console.tag }}"
imagePullPolicy: {{ .Values.images.streamnative_console.pullPolicy }}
Expand Down Expand Up @@ -437,6 +440,12 @@ spec:
secretName: {{ .Values.streamnative_console.login.sso.pulsarJwt.config.SERVICE_ACCOUNT_SUPER_TOKEN_SECRET }}
defaultMode: 0440
{{- end }}
{{- if .Values.streamnative_console.dbPasswordSecret }}
- name: db-password-secret
secret:
secretName: {{ .Values.streamnative_console.dbPasswordSecret }}
defaultMode: 0440
{{- end }}
{{- if .Values.streamnative_console.securityContext }}
securityContext: {{- toYaml .Values.streamnative_console.securityContext | nindent 8 }}
{{- end }}
Expand Down
14 changes: 12 additions & 2 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2396,10 +2396,20 @@ streamnative_console:
GRAFANA_AUTH_PROXY_USER: ""
CONNECTOR_ENABLED: true
OPENAPI_ENABLED: false
# please use base64 encoded your password
DB_PASSWORD: ""
# Extra environment variables for streamnative-console container
extraEnv: []
# Secret name containing DB_PASSWORD and NEW_PASSWORD keys
# The secret should have two keys: DB_PASSWORD and NEW_PASSWORD
# Example command to create the secret:
# kubectl create secret generic my-db-password-secret \
# --from-literal=DB_PASSWORD=your-db-password \
# --from-literal=NEW_PASSWORD=your-new-password
# Example command to update the secret:
# kubectl create secret generic my-db-password-secret \
# --from-literal=DB_PASSWORD=your-new-db-password \
# --from-literal=NEW_PASSWORD=your-new-password \
# --dry-run=client -o yaml | kubectl apply -f -
dbPasswordSecret: ""

login:
sso:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ spec:
if [ -f "/pulsar-manager/secrets/pulsar-jwt/TOKEN" ]; then
export TOKEN=$(cat /pulsar-manager/secrets/pulsar-jwt/TOKEN)
fi
if [ -f "/pulsar-manager/secrets/db-password/DB_PASSWORD" ]; then
export DB_PASSWORD=$(cat /pulsar-manager/secrets/db-password/DB_PASSWORD)
fi
if [ -f "/pulsar-manager/secrets/db-password/NEW_PASSWORD" ]; then
export NEW_PASSWORD=$(cat /pulsar-manager/secrets/db-password/NEW_PASSWORD)
fi
/pulsar-manager/entrypoint.sh
env:
- name: SPRING_CONFIGURATION_FILE
Expand All @@ -192,18 +198,10 @@ spec:
- name: GLOBAL_RESOURCE_READ_ONLY
value: "true"
{{- end }}
{{- if .Values.streamnative_console.configData.DB_PASSWORD }}
- name: DB_PASSWORD
value: {{ .Values.streamnative_console.configData.DB_PASSWORD | b64dec | quote }}
{{- end }}
{{- if hasSuffix "-all" .Values.images.streamnative_console.tag }}
- name: DB_BASE
value: sqlite
{{- end }}
{{- if .Values.streamnative_console.configData.NEW_PASSWORD }}
- name: NEW_PASSWORD
value: {{ .Values.streamnative_console.configData.NEW_PASSWORD | b64dec | quote }}
{{- end }}
- name: CONNECTOR_ENABLED
value: "{{ .Values.streamnative_console.configData.CONNECTOR_ENABLED | default "true" }}"
{{- with .Values.streamnative_console.extraEnv }}
Expand Down Expand Up @@ -352,6 +350,11 @@ spec:
mountPath: /pulsar-manager/secrets/pulsar-jwt
readOnly: true
{{- end }}
{{- if .Values.streamnative_console.dbPasswordSecret }}
- name: db-password-secret
mountPath: /pulsar-manager/secrets/db-password
readOnly: true
{{- end }}
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.streamnative_console.component }}-gateway"
image: "{{ .Values.images.streamnative_console.repository }}:{{ .Values.images.streamnative_console.tag }}"
{{- if .Values.streamnative_console.securityContext }}
Expand Down Expand Up @@ -496,6 +499,12 @@ spec:
secretName: {{ .Values.streamnative_console.login.sso.pulsarJwt.config.SERVICE_ACCOUNT_SUPER_TOKEN_SECRET }}
defaultMode: 0440
{{- end }}
{{- if .Values.streamnative_console.dbPasswordSecret }}
- name: db-password-secret
secret:
secretName: {{ .Values.streamnative_console.dbPasswordSecret }}
defaultMode: 0440
{{- end }}
{{- if .Values.streamnative_console.securityContext }}
securityContext: {{- toYaml .Values.streamnative_console.securityContext | nindent 8 }}
{{- end }}
Expand Down
14 changes: 12 additions & 2 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2487,10 +2487,20 @@ streamnative_console:
CONNECTOR_ENABLED: true
CUSTOM_PAYLOAD_ENABLED: false
OPENAPI_ENABLED: false
# please use base64 encoded your password
DB_PASSWORD: ""
# Extra environment variables for streamnative-console container
extraEnv: []
# Secret name containing DB_PASSWORD and NEW_PASSWORD keys
# The secret should have two keys: DB_PASSWORD and NEW_PASSWORD
# Example command to create the secret:
# kubectl create secret generic my-db-password-secret \
# --from-literal=DB_PASSWORD=your-db-password \
# --from-literal=NEW_PASSWORD=your-new-password
# Example command to update the secret:
# kubectl create secret generic my-db-password-secret \
# --from-literal=DB_PASSWORD=your-new-db-password \
# --from-literal=NEW_PASSWORD=your-new-password \
# --dry-run=client -o yaml | kubectl apply -f -
dbPasswordSecret: ""

login:
sso:
Expand Down
Loading