diff --git a/charts/flyte-binary/templates/configmap.yaml b/charts/flyte-binary/templates/configmap.yaml index 21e3eb4169..3360fdc0c4 100644 --- a/charts/flyte-binary/templates/configmap.yaml +++ b/charts/flyte-binary/templates/configmap.yaml @@ -40,7 +40,7 @@ data: show-source: true level: {{ default 1 .Values.configuration.logging.level }} propeller: - create-flyteworkflow-crd: {{ .Values.configuration.propeller.createCrd }} + create-flyteworkflow-crd: {{ .Values.configuration.propeller.createCRDs }} webhook: certDir: /var/run/flyte/certs localCert: true diff --git a/charts/flyte-binary/templates/crds/flyteworkflow.yaml b/charts/flyte-binary/templates/crds/flyteworkflow.yaml index cb435af683..3e5167d6ac 100644 --- a/charts/flyte-binary/templates/crds/flyteworkflow.yaml +++ b/charts/flyte-binary/templates/crds/flyteworkflow.yaml @@ -1,4 +1,4 @@ -{{- if .Values.crds.create }} +{{- if not .Values.configuration.propeller.createCRDs }} {{- if $.Capabilities.APIVersions.Has "apiextensions.k8s.io/v1/CustomResourceDefinition" }} apiVersion: apiextensions.k8s.io/v1 {{- else }} diff --git a/charts/flyte-binary/values.yaml b/charts/flyte-binary/values.yaml index f1bff26874..97fa1fe8d3 100644 --- a/charts/flyte-binary/values.yaml +++ b/charts/flyte-binary/values.yaml @@ -178,7 +178,8 @@ configuration: defaultTimeout: 10s # propeller Specify configuration for Flyte Propeller propeller: - createCrd: true + # createCRDs If true, Propeller will install CRDs at runtime, if false, CRDs will be installed during helm install + createCRDs: true # externalConfigMap Specify an existing, external ConfigMap to use as configuration for Flyte # If set, no Flyte configuration will be generated by this chart externalConfigMap: "" @@ -378,10 +379,6 @@ rbac: # extraRules Add additional rules to the ClusterRole extraRules: [] -crds: - # create Create CustomResourceDefinition resources during installation - create: false - # serviceAccount Configure Flyte ServiceAccount serviceAccount: # create Create ServiceAccount for Flyte