Skip to content

Commit 30e547a

Browse files
authored
Add option to install CRD as a part of chart install in flyte-binary (#5967)
* Add option to install CRD as a part of chart install in flyte-binary Signed-off-by: marrrcin <[email protected]> * Add option to install CRD as a part of chart install in flyte-binary -- PR suggestions Signed-off-by: marrrcin <[email protected]> * Add option to install CRD as a part of chart install in flyte-binary -- make helm Signed-off-by: marrrcin <[email protected]> --------- Signed-off-by: marrrcin <[email protected]>
1 parent d2ddfe2 commit 30e547a

File tree

7 files changed

+44
-7
lines changed

7 files changed

+44
-7
lines changed

charts/flyte-binary/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Chart for basic single Flyte executable deployment
6363
| configuration.logging.plugins.kubernetes.templateUri | string | `""` | |
6464
| configuration.logging.plugins.stackdriver.enabled | bool | `false` | |
6565
| configuration.logging.plugins.stackdriver.templateUri | string | `""` | |
66+
| configuration.propeller.createCRDs | bool | `true` | |
6667
| configuration.storage.metadataContainer | string | `"my-organization-flyte-container"` | |
6768
| configuration.storage.provider | string | `"s3"` | |
6869
| configuration.storage.providerConfig.azure.account | string | `"storage-account-name"` | |

charts/flyte-binary/templates/configmap.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ data:
4040
show-source: true
4141
level: {{ default 1 .Values.configuration.logging.level }}
4242
propeller:
43-
create-flyteworkflow-crd: true
43+
create-flyteworkflow-crd: {{ .Values.configuration.propeller.createCRDs }}
4444
webhook:
4545
certDir: /var/run/flyte/certs
4646
localCert: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{- if not .Values.configuration.propeller.createCRDs }}
2+
{{- if $.Capabilities.APIVersions.Has "apiextensions.k8s.io/v1/CustomResourceDefinition" }}
3+
apiVersion: apiextensions.k8s.io/v1
4+
{{- else }}
5+
apiVersion: apiextensions.k8s.io/v1beta1
6+
{{- end }}
7+
kind: CustomResourceDefinition
8+
metadata:
9+
name: flyteworkflows.flyte.lyft.com
10+
spec:
11+
group: flyte.lyft.com
12+
names:
13+
kind: FlyteWorkflow
14+
plural: flyteworkflows
15+
shortNames:
16+
- fly
17+
singular: flyteworkflow
18+
scope: Namespaced
19+
{{- if $.Capabilities.APIVersions.Has "apiextensions.k8s.io/v1/CustomResourceDefinition" }}
20+
versions:
21+
- name: v1alpha1
22+
served: true
23+
storage: true
24+
schema:
25+
openAPIV3Schema:
26+
type: object
27+
x-kubernetes-preserve-unknown-fields: true
28+
properties:
29+
{{- else }}
30+
version: v1alpha1
31+
{{- end }}
32+
{{- end }}

charts/flyte-binary/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ configuration:
176176
timeouts:
177177
GetTask: 10s
178178
defaultTimeout: 10s
179+
# propeller Specify configuration for Flyte Propeller
180+
propeller:
181+
# createCRDs If true, Propeller will install CRDs at runtime, if false, CRDs will be installed during helm install
182+
createCRDs: true
179183
# externalConfigMap Specify an existing, external ConfigMap to use as configuration for Flyte
180184
# If set, no Flyte configuration will be generated by this chart
181185
externalConfigMap: ""

docker/sandbox-bundled/manifests/complete-agent.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ type: Opaque
819819
---
820820
apiVersion: v1
821821
data:
822-
haSharedSecret: SlI1TDFkTXBMaThuc0hlSQ==
822+
haSharedSecret: c2Z6ZUdxTjJ1bEc1QlVaeQ==
823823
proxyPassword: ""
824824
proxyUsername: ""
825825
kind: Secret
@@ -1416,7 +1416,7 @@ spec:
14161416
metadata:
14171417
annotations:
14181418
checksum/config: 8f50e768255a87f078ba8b9879a0c174c3e045ffb46ac8723d2eedbe293c8d81
1419-
checksum/secret: ffc8aa05a602edd8f9b1d7ef35aa1cc5e383bceb9b91307eef99e86f53e13d4e
1419+
checksum/secret: ad072a5177dfbeacda100d536f1c7d611808b1c7f79dc6d02d9dbf24b8294e3b
14201420
labels:
14211421
app: docker-registry
14221422
release: flyte-sandbox

docker/sandbox-bundled/manifests/complete.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ type: Opaque
801801
---
802802
apiVersion: v1
803803
data:
804-
haSharedSecret: YjdMdE9yejJzZ2xXSDFBRQ==
804+
haSharedSecret: TUpUek9Ib3BpWTlEbFRvSw==
805805
proxyPassword: ""
806806
proxyUsername: ""
807807
kind: Secret
@@ -1365,7 +1365,7 @@ spec:
13651365
metadata:
13661366
annotations:
13671367
checksum/config: 8f50e768255a87f078ba8b9879a0c174c3e045ffb46ac8723d2eedbe293c8d81
1368-
checksum/secret: 956ac1b58c049a630c94605eedaba7ba9de3fc01233701ef403ab4bf24fe2a7a
1368+
checksum/secret: 09204971564694f6090d55069cf0853843456945f781aa7842f33021d09f4f25
13691369
labels:
13701370
app: docker-registry
13711371
release: flyte-sandbox

docker/sandbox-bundled/manifests/dev.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ metadata:
499499
---
500500
apiVersion: v1
501501
data:
502-
haSharedSecret: YUpzb25xNTM1eml3Rmpueg==
502+
haSharedSecret: d2VkcjRnRHkyTmZrOU52cw==
503503
proxyPassword: ""
504504
proxyUsername: ""
505505
kind: Secret
@@ -934,7 +934,7 @@ spec:
934934
metadata:
935935
annotations:
936936
checksum/config: 8f50e768255a87f078ba8b9879a0c174c3e045ffb46ac8723d2eedbe293c8d81
937-
checksum/secret: 2720f13bd64051a7acb512e59e426b9f6c5f6c3c7d1d9a3a423e2df4cf9bab46
937+
checksum/secret: 3b1376c2c63f4fff6745ad085844b7a1d7c8ad2cce13cae4e1e9c3ea495cebaa
938938
labels:
939939
app: docker-registry
940940
release: flyte-sandbox

0 commit comments

Comments
 (0)