From 8c5ae704701a868f95a528f016f7030e3b451670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=20=E5=BB=BA=E6=98=8C?= Date: Wed, 17 Aug 2022 10:51:38 +0800 Subject: [PATCH] fix clickhouse StatefulSet **Phenomenon and reproduction steps** fix clickhouse StatefulSet **Root cause and solution** (Describe the cause of the bug and corresponding solution) **Impactions** **Test method** (Test method to ensure the bug is fixed) **Affected branch(es)** * main **Checklist** - [ ] Dependencies update required - [ ] Common bug (similar problem in other repo) --- charts/deepflow-agent/Chart.yaml | 2 +- charts/deepflow/Chart.yaml | 2 +- .../charts/clickhouse/templates/statefulset.yaml | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/charts/deepflow-agent/Chart.yaml b/charts/deepflow-agent/Chart.yaml index 9839c74..7703234 100644 --- a/charts/deepflow-agent/Chart.yaml +++ b/charts/deepflow-agent/Chart.yaml @@ -3,7 +3,7 @@ description: An automated observability platform for cloud-native developers. name: deepflow-agent engine: gotpl type: application -version: 0.1.011 +version: 0.1.012 appVersion: "6.1.1" kubeVersion: ">=1.16.0-0" sources: diff --git a/charts/deepflow/Chart.yaml b/charts/deepflow/Chart.yaml index 2e279f2..a79c983 100644 --- a/charts/deepflow/Chart.yaml +++ b/charts/deepflow/Chart.yaml @@ -3,7 +3,7 @@ description: An automated observability platform for cloud-native developers. name: deepflow engine: gotpl type: application -version: 0.1.011 +version: 0.1.012 appVersion: "6.1.1" kubeVersion: ">=1.16.0-0" sources: diff --git a/charts/deepflow/charts/clickhouse/templates/statefulset.yaml b/charts/deepflow/charts/clickhouse/templates/statefulset.yaml index cf234f9..3a35f1d 100644 --- a/charts/deepflow/charts/clickhouse/templates/statefulset.yaml +++ b/charts/deepflow/charts/clickhouse/templates/statefulset.yaml @@ -11,17 +11,6 @@ spec: replicas: {{ tpl (toString .Values.replicas) . }} podManagementPolicy: {{ tpl .Values.podManagementPolicy . }} serviceName: {{ include "clickhouse.fullname" . }}-headless - selector: - matchLabels: - {{- include "clickhouse.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "clickhouse.selectorLabels" . | nindent 8 }} selector: matchLabels: {{- include "clickhouse.selectorLabels" . | nindent 6 }}