diff --git a/charts/postgres-operator/templates/customrresourcedefinition.yaml b/charts/postgres-operator/templates/customrresourcedefinition.yaml index 1c6f1564e..88ee1b614 100644 --- a/charts/postgres-operator/templates/customrresourcedefinition.yaml +++ b/charts/postgres-operator/templates/customrresourcedefinition.yaml @@ -1,3 +1,4 @@ +{{ if .Values.crd.create }} apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: @@ -99,3 +100,4 @@ spec: subresources: status: {} version: v1 +{{ end }} diff --git a/charts/postgres-operator/values-crd.yaml b/charts/postgres-operator/values-crd.yaml index 1ecd8915b..4cee9e663 100644 --- a/charts/postgres-operator/values-crd.yaml +++ b/charts/postgres-operator/values-crd.yaml @@ -238,6 +238,10 @@ rbac: # Specifies whether RBAC resources should be created create: true +crd: + # Specifies whether custom resource definitions should be created + create: true + serviceAccount: # Specifies whether a ServiceAccount should be created create: true diff --git a/charts/postgres-operator/values.yaml b/charts/postgres-operator/values.yaml index b7ec6b21f..1bf6b8085 100644 --- a/charts/postgres-operator/values.yaml +++ b/charts/postgres-operator/values.yaml @@ -219,6 +219,10 @@ rbac: # Specifies whether RBAC resources should be created create: true +crd: + # Specifies whether custom resource definitions should be created + create: true + serviceAccount: # Specifies whether a ServiceAccount should be created create: true