Skip to content

Commit e7f07b4

Browse files
committed
feat: optionally install CRD's based on helm value
1 parent 60303ad commit e7f07b4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

helm/operator/templates/minio.min.io_tenants.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if .Values.operator.installCRDs }}
12
---
23
apiVersion: apiextensions.k8s.io/v1
34
kind: CustomResourceDefinition
@@ -5754,3 +5755,4 @@ spec:
57545755
storage: true
57555756
subresources:
57565757
status: {}
5758+
{{ end }}

helm/operator/templates/sts.min.io_policybindings.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if .Values.operator.installCRDs }}
12
---
23
apiVersion: apiextensions.k8s.io/v1
34
kind: CustomResourceDefinition
@@ -131,3 +132,4 @@ spec:
131132
storage: true
132133
subresources:
133134
status: {}
135+
{{ end }}

helm/operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ operator:
7575
# pullPolicy: IfNotPresent
7676
#
7777
sidecarImage: {}
78+
# Install custom resource definitions
79+
installCRDs: true
7880
###
7981
#
8082
# An array of Kubernetes secrets to use for pulling images from a private ``image.repository``.

0 commit comments

Comments
 (0)