Skip to content

Commit

Permalink
chore(clickhouse): support custom labels and pod labels (#550)
Browse files Browse the repository at this point in the history
#### Chores

- clickhouse: support custom labels and pod labels
- bump up chart version: clickhouse 24.1.9
---------

Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi authored Nov 8, 2024
1 parent 3aa9412 commit dedcb74
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/clickhouse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: clickhouse
description: A Helm chart for ClickHouse
type: application
version: 24.1.8
version: 24.1.9
appVersion: "24.1.2"
icon: https://github.com/ClickHouse/clickhouse-docs/raw/84f38d893eb7e561c7296279d7953b6a508ec413/static/img/clickhouse-logo.svg
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ include "clickhouse.namespace" . }}
labels:
{{- include "clickhouse.labels" . | nindent 4 }}
{{- if .Values.labels }}
{{- toYaml .Values.labels | nindent 4 }}
{{- end }}
{{- if .Values.annotations }}
annotations:
{{- toYaml .Values.annotations | nindent 4 }}
Expand Down Expand Up @@ -131,6 +134,9 @@ spec:
metadata:
labels:
{{- include "clickhouse.labels" . | nindent 12 }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 12 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ include "clickhouse.namespace" . }}
labels:
{{- include "clickhouseOperator.labels" . | nindent 4 }}
{{- if .Values.clickhouseOperator.labels }}
{{- toYaml .Values.clickhouseOperator.labels | nindent 4 }}
{{- end }}
{{- if .Values.clickhouseOperator.annotations }}
annotations:
{{- toYaml .Values.clickhouseOperator.annotations | nindent 4 }}
Expand All @@ -27,6 +30,9 @@ spec:
checksum/usersd-files: {{ include (print $.Template.BasePath "/clickhouse-operator/configmaps/etc-usersd-files.yaml") . | sha256sum }}
labels:
{{- include "clickhouseOperator.selectorLabels" . | nindent 8 }}
{{- if .Values.clickhouseOperator.podLabels }}
{{- toYaml .Values.clickhouseOperator.podLabels | nindent 8 }}
{{- end }}
spec:
{{- include "clickhouseOperator.imagePullSecrets" . | indent 6 }}
serviceAccountName: {{ include "clickhouseOperator.serviceAccountName" . }}
Expand Down
10 changes: 8 additions & 2 deletions charts/clickhouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ image:
# If global.imagePullSecrets is set as well, it will merged.
imagePullSecrets: []
# - "clickhouse-pull-secret"

# ClickHouse instance labels
labels: {}
# ClickHouse pod labels
podLabels: {}
# -- ClickHouse instance annotations.
annotations: {}

Expand Down Expand Up @@ -487,9 +490,12 @@ clickhouseOperator:
# If not set and create is true, a name is generated using the fullname template
name:

# ClickHouse operator deployment labels
labels: {}
# ClickHouse operator pod labels
podLabels: {}
# -- Clickhouse Operator deployment annotations
annotations: {}

# -- Clickhouse Operator pod(s) annotation.
podAnnotations: {}
# signoz.io/port: '8888'
Expand Down

0 comments on commit dedcb74

Please sign in to comment.