Skip to content

Commit

Permalink
Add option to install CRD as a part of chart install in flyte-binary …
Browse files Browse the repository at this point in the history
…-- PR suggestions

Signed-off-by: marrrcin <[email protected]>
  • Loading branch information
marrrcin committed Nov 6, 2024
1 parent 66f839c commit ff9ae23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/flyte-binary/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/flyte-binary/templates/crds/flyteworkflow.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
7 changes: 2 additions & 5 deletions charts/flyte-binary/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ configuration:
defaultTimeout: 10s
# propeller Specify configuration for Flyte Propeller
propeller:
createCrd: true
# createCrd 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: ""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff9ae23

Please sign in to comment.