From e7f07b48565c57494498277aedbfcd8a322144b0 Mon Sep 17 00:00:00 2001 From: Julia Mertz Date: Tue, 17 Jun 2025 17:05:13 +0200 Subject: [PATCH] feat: optionally install CRD's based on helm value --- helm/operator/templates/minio.min.io_tenants.yaml | 2 ++ helm/operator/templates/sts.min.io_policybindings.yaml | 2 ++ helm/operator/values.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/helm/operator/templates/minio.min.io_tenants.yaml b/helm/operator/templates/minio.min.io_tenants.yaml index f4cf809d1ff..93f1fdd4099 100644 --- a/helm/operator/templates/minio.min.io_tenants.yaml +++ b/helm/operator/templates/minio.min.io_tenants.yaml @@ -1,3 +1,4 @@ +{{ if .Values.operator.installCRDs }} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition @@ -5754,3 +5755,4 @@ spec: storage: true subresources: status: {} +{{ end }} diff --git a/helm/operator/templates/sts.min.io_policybindings.yaml b/helm/operator/templates/sts.min.io_policybindings.yaml index 36099645884..93a83e3e4eb 100644 --- a/helm/operator/templates/sts.min.io_policybindings.yaml +++ b/helm/operator/templates/sts.min.io_policybindings.yaml @@ -1,3 +1,4 @@ +{{ if .Values.operator.installCRDs }} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition @@ -131,3 +132,4 @@ spec: storage: true subresources: status: {} +{{ end }} diff --git a/helm/operator/values.yaml b/helm/operator/values.yaml index 77a6f75059e..39e1c8a16cd 100644 --- a/helm/operator/values.yaml +++ b/helm/operator/values.yaml @@ -75,6 +75,8 @@ operator: # pullPolicy: IfNotPresent # sidecarImage: {} + # Install custom resource definitions + installCRDs: true ### # # An array of Kubernetes secrets to use for pulling images from a private ``image.repository``.