Skip to content

Commit

Permalink
apply comment
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed Jun 25, 2024
1 parent bff54e0 commit 0751da3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Added

- [Helm] Ability to use an external ClickHouse instance
(<https://github.com/cvat-ai/cvat/pull/8048>)
2 changes: 1 addition & 1 deletion helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies:
- name: clickhouse
version: "4.1.*"
repository: https://charts.bitnami.com/bitnami
condition: analytics.enabled
condition: clickhouse.enabled

- name: grafana
version: "6.60.*"
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ The name of the service account to use for backend pods
{{- end }}

{{- define "cvat.sharedClickhouseEnv" }}
{{- if .Values.analytics.enabled}}
{{- if .Values.analytics.enabled }}
- name: CLICKHOUSE_HOST
valueFrom:
secretKeyRef:
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ analytics:
clickhouseDb: cvat
clickhouseUser: user
clickhousePassword: user
# Set clickhouse.enabled to false in case of external db usage
clickhouseHost: "{{ .Release.Name }}-clickhouse"
clickhousePort: 8123

Expand All @@ -348,6 +349,8 @@ vector:
tag: "0.26.0-alpine"

clickhouse:
# Set to false in case of external db usage
enabled: true
shards: 1
replicaCount: 1
extraEnvVarsSecret: cvat-analytics-secret
Expand Down

0 comments on commit 0751da3

Please sign in to comment.