[bitnami/clickhouse] Add support for persistence.existingClaim (#18123)

* [bitnami/clickhouse] Add support for persistence.existingClaim (#17893)

Signed-off-by: Hedayat Vatankhah <hedayat.fwd@gmail.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Hedayat Vatankhah <hedayat.fwd@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Hedayat Vatankhah (هدایت)
2023-08-03 15:02:51 +03:00
committed by GitHub
parent 0f6914da75
commit e2573eaa54
4 changed files with 20 additions and 12 deletions

View File

@@ -28,4 +28,4 @@ maintainers:
name: clickhouse
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/clickhouse
version: 3.5.8
version: 3.6.0

View File

@@ -280,16 +280,17 @@ The command removes all the Kubernetes components associated with the chart and
### Persistence Parameters
| Name | Description | Value |
| -------------------------- | ---------------------------------------------------------------------- | ------------------- |
| `persistence.enabled` | Enable persistence using Persistent Volume Claims | `true` |
| `persistence.storageClass` | Storage class of backing PVC | `""` |
| `persistence.labels` | Persistent Volume Claim labels | `{}` |
| `persistence.annotations` | Persistent Volume Claim annotations | `{}` |
| `persistence.accessModes` | Persistent Volume Access Modes | `["ReadWriteOnce"]` |
| `persistence.size` | Size of data volume | `8Gi` |
| `persistence.selector` | Selector to match an existing Persistent Volume for WordPress data PVC | `{}` |
| `persistence.dataSource` | Custom PVC data source | `{}` |
| Name | Description | Value |
| --------------------------- | ---------------------------------------------------------------------- | ------------------- |
| `persistence.enabled` | Enable persistence using Persistent Volume Claims | `true` |
| `persistence.existingClaim` | Name of an existing PVC to use | `""` |
| `persistence.storageClass` | Storage class of backing PVC | `""` |
| `persistence.labels` | Persistent Volume Claim labels | `{}` |
| `persistence.annotations` | Persistent Volume Claim annotations | `{}` |
| `persistence.accessModes` | Persistent Volume Access Modes | `["ReadWriteOnce"]` |
| `persistence.size` | Size of data volume | `8Gi` |
| `persistence.selector` | Selector to match an existing Persistent Volume for WordPress data PVC | `{}` |
| `persistence.dataSource` | Custom PVC data source | `{}` |
### Init Container Parameters

View File

@@ -389,6 +389,10 @@ spec:
{{- if not $.Values.persistence.enabled }}
- name: data
emptyDir: {}
{{- else if $.Values.persistence.existingClaim }}
- name: data
persistentVolumeClaim:
claimName: {{ tpl $.Values.persistence.existingClaim $ }}
{{- end }}
{{- if $.Values.tls.enabled }}
- name: raw-certificates
@@ -400,7 +404,7 @@ spec:
{{- if $.Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" $.Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- if $.Values.persistence.enabled }}
{{- if and $.Values.persistence.enabled (not $.Values.persistence.existingClaim) }}
volumeClaimTemplates:
- metadata:
name: data

View File

@@ -903,6 +903,9 @@ persistence:
## @param persistence.enabled Enable persistence using Persistent Volume Claims
##
enabled: true
## @param persistence.existingClaim Name of an existing PVC to use
##
existingClaim: ""
## @param persistence.storageClass Storage class of backing PVC
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning