mirror of
https://github.com/bitnami/charts.git
synced 2026-03-27 15:27:10 +08:00
* [bitnami/clickhouse] feat: replace ZooKeeper with ClickHouse Keeper Signed-off-by: juan131 <juan.ariza@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * ci: adapt goss tests Signed-off-by: juan131 <juan.ariza@broadcom.com> * docs: update upgrading instructions Signed-off-by: juan131 <juan.ariza@broadcom.com> * bugfix: simplify traffic exposure Signed-off-by: juan131 <juan.ariza@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * bugfix: missing separator Signed-off-by: juan131 <juan.ariza@broadcom.com> * bugfix: missing usePasswordFiles feature Signed-off-by: juan131 <juan.ariza@broadcom.com> * add suggestions from code review Signed-off-by: juan131 <juan.ariza@broadcom.com> * feat: add new parameters for extra pors on headless services Signed-off-by: juan131 <juan.ariza@broadcom.com> * feat: add support for loading custom usersd config from secrets Signed-off-by: juan131 <juan.ariza@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * docs: fix typo Signed-off-by: juan131 <juan.ariza@broadcom.com> --------- Signed-off-by: juan131 <juan.ariza@broadcom.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
{{- /*
|
|
Copyright Broadcom, Inc. All Rights Reserved.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{- if .Values.pdb.create }}
|
|
{{- $shards := .Values.shards | int }}
|
|
{{- range $i, $e := until $shards }}
|
|
apiVersion: {{ include "common.capabilities.policy.apiVersion" $ }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ printf "%s-shard%d" (include "common.names.fullname" $ ) $i }}
|
|
namespace: {{ include "common.names.namespace" $ | quote }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" $.Values.commonLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/component: clickhouse
|
|
app.kubernetes.io/part-of: clickhouse
|
|
shard: {{ $i | quote }}
|
|
{{- if $.Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if $.Values.pdb.minAvailable }}
|
|
minAvailable: {{ $.Values.pdb.minAvailable }}
|
|
{{- end }}
|
|
{{- if or $.Values.pdb.maxUnavailable (not $.Values.pdb.minAvailable) }}
|
|
maxUnavailable: {{ $.Values.pdb.maxUnavailable | default 1 }}
|
|
{{- end }}
|
|
{{- $podLabels := include "common.tplvalues.merge" (dict "values" (list $.Values.podLabels $.Values.commonLabels) "context" $) }}
|
|
selector:
|
|
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
|
app.kubernetes.io/component: clickhouse
|
|
app.kubernetes.io/part-of: clickhouse
|
|
shard: {{ $i | quote }}
|
|
---
|
|
{{- end }}
|
|
{{- end }}
|