Skip to content

Commit

Permalink
Merge pull request #217 from akash4sh/main
Browse files Browse the repository at this point in the history
feat: Add existing secret support for db password
  • Loading branch information
jebjohns authored Apr 27, 2024
2 parents 5f88e08 + 24c979d commit 04fe182
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/clickhouse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ sources:
- https://github.com/signoz/charts/
- https://github.com/ClickHouse/ClickHouse
type: application
version: 1.0.2
version: 1.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ spec:

configuration:
users:
{{- if .Values.existingSecret }}
{{ .Values.user }}/k8s_secret_password: {{ .Values.existingSecret.name }}/{{ .Values.existingSecret.passwordkey }}
{{ .Values.user }}/networks/ip:
{{- range $.Values.allowedNetworkIps }}
- {{ . | quote }}
{{- end }}
{{ .Values.user }}/profile: default
{{ .Values.user }}/quota: default
{{- else }}
{{ .Values.user }}/password: {{ .Values.password }}
{{ .Values.user }}/networks/ip:
{{- range $.Values.allowedNetworkIps }}
- {{ . | quote }}
{{- end }}
{{ .Values.user }}/profile: default
{{ .Values.user }}/quota: default
{{- end }}

profiles:
{{- merge dict .Values.profiles .Values.defaultProfiles | toYaml | nindent 6 }}
Expand Down
8 changes: 7 additions & 1 deletion charts/clickhouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,17 @@ cluster: cluster
# database: signoz_metrics
# -- Clickhouse trace database (SigNoz Traces)
# traceDatabase: signoz_traces

# -- Clickhouse user
user: admin
# -- Clickhouse password
# -- Clickhouse password.Ignored if existingSecret is set
password: admin

# -- Name of an existing Kubernetes secret object containing the password and the key pointing to the password in your Kubernetes secret
existingSecret: {}
# name:
# passwordkey:

# -- Clickhouse cluster replicas
replicasCount: 1
# -- Clickhouse cluster shards
Expand Down

0 comments on commit 04fe182

Please sign in to comment.