From 5953b8c9af885e665770c0d64d8212df8ad0bcfe Mon Sep 17 00:00:00 2001 From: OAharoni-RedHat Date: Wed, 19 Aug 2026 10:59:08 -0400 Subject: [PATCH] add new override option to maybe fix bug --- Chart.yaml | 2 +- README.md | 3 ++- templates/odf-storagecluster.yaml | 5 ++++- values.yaml | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 991fff7..18ccc7f 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.3.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/README.md b/README.md index 552eed6..35c8363 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # openshift-data-foundations -![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) +![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) A Helm chart to install ODF on Openshift @@ -70,6 +70,7 @@ default failure domain for objectStorage. | odf.osd.pvc.storageClassName | string | `""` | Storage class for ODF OSD volumes. Empty selects a platform default from global.clusterPlatform (AWS: gp3-csi, Azure: managed-csi, GCP: standard-csi). | | odf.osd.requests.cpu | int | `2` | | | odf.osd.requests.memory | string | `"5Gi"` | | +| odf.preparePlacement | object | `{}` | Optional preparePlacement for OSD device sets. When set, overrides the default empty preparePlacement on the StorageCluster storageDeviceSets, allowing topology spread constraints or affinity rules to control OSD prepare pod scheduling. | | odf.serviceUrl | string | `"http://rook-ceph-rgw-ocs-storagecluster-cephobjectstore.openshift-storage.svc.cluster.local"` | | | odf.storageClass.name | string | `"ocs-storagecluster-ceph-rgw"` | | | odf.storageClass.objectStoreName | string | `"ocs-storagecluster-cephobjectstore"` | | diff --git a/templates/odf-storagecluster.yaml b/templates/odf-storagecluster.yaml index 5f2fb85..876c51f 100644 --- a/templates/odf-storagecluster.yaml +++ b/templates/odf-storagecluster.yaml @@ -45,7 +45,10 @@ spec: cpu: {{ .Values.odf.osd.requests.cpu | squote }} memory: {{ .Values.odf.osd.requests.memory }} placement: {} - preparePlacement: {} + preparePlacement: +{{- if .Values.odf.preparePlacement }} +{{ .Values.odf.preparePlacement | toYaml | indent 6 }} +{{- end }} dataPVCTemplate: metadata: {} spec: diff --git a/values.yaml b/values.yaml index 5c7c3ca..fa0bda3 100644 --- a/values.yaml +++ b/values.yaml @@ -35,6 +35,10 @@ odf: storage: 2Ti # -- Storage class for ODF OSD volumes. Empty selects a platform default from global.clusterPlatform (AWS: gp3-csi, Azure: managed-csi, GCP: standard-csi). storageClassName: "" + # -- Optional preparePlacement for OSD device sets. When set, overrides the default empty + # preparePlacement on the StorageCluster storageDeviceSets, allowing topology spread + # constraints or affinity rules to control OSD prepare pod scheduling. + preparePlacement: {} storageClass: name: ocs-storagecluster-ceph-rgw # name: openshift-storage.noobaa.io