helm: allow annotations and labels for CephCluster
The helm chart will allow setting annotations and labels
in the CephCluster CR via the helm settings in values.yaml
named cephClusterMetadata.
Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
(cherry picked from commit 1e4e31fa79)
This commit is contained in:
1 parent
87d37937d2
commit
8cb1d475fd
3 files changed
+15
No files matched your search
@@ -63,6 +63,8 @@ The following table lists the configurable parameters of the rook-operator chart
|
||||
|-----------|-------------|---------|
|
||||
| `cephBlockPools` | A list of CephBlockPool configurations to deploy | See [below](#ceph-block-pools) |
|
||||
| `cephBlockPoolsVolumeSnapshotClass` | Settings for the block pool snapshot class | See [RBD Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#rbd-snapshots) |
|
||||
| `cephClusterMetadata.annotations` | | `{}` |
|
||||
| `cephClusterMetadata.labels` | | `{}` |
|
||||
| `cephClusterSpec` | Cluster configuration. | See [below](#ceph-cluster-spec) |
|
||||
| `cephFileSystemVolumeSnapshotClass` | Settings for the filesystem snapshot class | See [CephFS Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#cephfs-snapshots) |
|
||||
| `cephFileSystems` | A list of CephFileSystem configurations to deploy | See [below](#ceph-file-systems) |
|
||||
|
||||
@@ -4,6 +4,14 @@ kind: CephCluster
|
||||
metadata:
|
||||
name: {{ .Values.clusterName | default .Release.Namespace | quote }}
|
||||
namespace: {{ .Release.Namespace | quote }} # namespace:cluster
|
||||
{{- with .Values.cephClusterMetadata.labels }}
|
||||
labels:
|
||||
{{- . | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.cephClusterMetadata.annotations }}
|
||||
annotations:
|
||||
{{- . | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- with .Values.monitoring }}
|
||||
monitoring:
|
||||
|
||||
@@ -85,6 +85,11 @@ monitoring:
|
||||
# imagePullSecrets:
|
||||
# - name: my-registry-secret
|
||||
|
||||
# Labels and annotations to add to the CephCluster CR
|
||||
cephClusterMetadata:
|
||||
annotations: {}
|
||||
labels: {}
|
||||
|
||||
# Specify these values to override the Ceph image in the cephClusterSpec below.
|
||||
# If specifying these values, do not include the cephVersion section in the cephClusterSpec.
|
||||
cephImage:
|
||||
|
||||
Reference in new issue
Block a user