Skip to content

Commit

Permalink
fix: input variables for for clickhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
PNarode committed Feb 21, 2025
1 parent 288c2e0 commit aa87025
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ ClickHouse Server Configuration
<default>
<password>{{ include "wandb.clickhouse.password" $ }}</password>
<access_management>1</access_management>
<profile>default</profile>
<profile>{{ include "wandb.clickhouse.user" $ }}</profile>
</default>
</users>
<path>/var/lib/clickhouse/</path>
Expand Down
15 changes: 3 additions & 12 deletions charts/operator-wandb/templates/_clickhouse.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{- if .Values.global.clickhouse.external -}}
{{- .Values.global.clickhouse.host | default "default-host" -}}
{{- else -}}
{{- include "wandb.clickhouse.fullname" . }}-ch-headless
{{- include "wandb.clickhouse.fullname" . }}-ch-server-headless.{{ .Release.Name }}.svc.cluster.local
{{- end }}
{{- end }}

Expand All @@ -26,27 +26,18 @@ Return name of secret where ClickHouse information is stored
{{- if .Values.global.clickhouse.passwordSecret.name -}}
{{- .Values.global.clickhouse.passwordSecret.name -}}
{{- else -}}
default
{{- printf "%s-clickhouse-secret" .Release.Name -}}
{{- end -}}
{{- end -}}

{{- define "wandb.clickhouse.imagePullSecrets" -}}
{{- if .Values.global.clickhouse.imagePullSecrets.name -}}
{{- .Values.global.clickhouse.imagePullSecrets.name -}}
{{- else -}}
{{- printf "%s-clickhouse" .Release.Name -}}
{{- end -}}
{{- end -}}


{{/*
Return name of secret where ClickHouse information is stored
*/}}
{{- define "wandb.clickhouse.passwordSecret.passwordKey" -}}
{{- if .Values.global.clickhouse.passwordSecret.name }}
{{- .Values.global.clickhouse.passwordSecret.passwordKey | default "default" -}}
{{- else -}}
default
CLICKHOUSE_PASSWORD
{{- end -}}
{{- end }}

Expand Down
4 changes: 0 additions & 4 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,10 @@ clickhouse:
server_image:
repository: "clickhouse/clickhouse-server"
tag: "latest"
server:
httpPort: 8123
keeper_image:
repository: "clickhouse/clickhouse-keeper"
tag: "latest"
local_storage: "100Gi"
database: "weave_trace_db"
password: "default"
buckets:
access_key_id: ""
secret_access_key: ""
Expand Down

0 comments on commit aa87025

Please sign in to comment.