From 28d8f6934c57321ab1f4b1f1afd34fc8378140a0 Mon Sep 17 00:00:00 2001 From: deitmerit <33935394+deitmerit@users.noreply.github.com> Date: Tue, 27 Aug 2019 13:02:57 +0200 Subject: [PATCH] Allow disabling of CRD creation (#652) Signed-off-by: Stefan Frye --- .../templates/customrresourcedefinition.yaml | 2 ++ charts/postgres-operator/values-crd.yaml | 4 ++++ charts/postgres-operator/values.yaml | 4 ++++ 3 files changed, 10 insertions(+) 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