Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
feat(charts): add NDM metaconfigs support
Browse files Browse the repository at this point in the history
Add `metaconfigs` capability introduced in openebs-archive/node-disk-manager#618

fixes 338

Signed-off-by: cmontemuino <[email protected]>
  • Loading branch information
cmontemuino committed Dec 7, 2023
1 parent c10aadb commit 1674415
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/openebs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
version: 3.9.0
version: 3.10.0
name: openebs
appVersion: 3.9.0
appVersion: 3.10.0
description: Containerized Attached Storage for Kubernetes
icon: https://raw.githubusercontent.com/cncf/artwork/HEAD/projects/openebs/icon/color/openebs-icon-color.png
home: http://www.openebs.io/
Expand Down
2 changes: 2 additions & 0 deletions charts/openebs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ The following table lists the common configurable parameters of the OpenEBS char
| `ndmOperator.image` | Image for NDM Operator | `openebs/node-disk-operator` |
| `ndmOperator.imageTag` | Image Tag for NDM Operator | `2.1.0` |
| `ndm.probes.enableSeachest` | Enable Seachest probe for NDM | `false` |
| `ndm.metaConfig.nodeLabelPattern` | Config for adding node labels as BD labels | `kubernetes.io*,beta.kubernetes.io*` |
| `ndm.metaConfig.deviceLabelTypes` | Config for adding device attributes as BD labels | `.spec.details.vendor,.spec.details.model,.spec.details.driveType,.spec.filesystem.fsType`|
| `policies.monitoring.image` | Image for Prometheus Exporter | `openebs/m-exporter` |
| `policies.monitoring.imageTag` | Image Tag for Prometheus Exporter | `2.12.2` |
| `provisioner.enabled` | Enable Provisioner | `true` |
Expand Down
7 changes: 7 additions & 0 deletions charts/openebs/templates/ndm/cm-node-disk-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ data:
state: {{ .Values.ndm.filters.enablePathFilter }}
include: "{{ .Values.ndm.filters.includePaths }}"
exclude: "{{ .Values.ndm.filters.excludePaths }}"
metaconfigs:
- key: node-labels
name: node labels
pattern: "{{ .Values.ndm.metaConfig.nodeLabelPattern }}"
- key: device-labels
name: device labels
type: "{{ .Values.ndm.metaConfig.deviceLabelTypes }}"
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/openebs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ ndm:
enableSeachest: false
nodeSelector: {}
tolerations: []
metaConfig:
nodeLabelPattern: ""
deviceLabelTypes: ""
healthCheck:
initialDelaySeconds: 30
periodSeconds: 60
Expand Down

0 comments on commit 1674415

Please sign in to comment.