Skip to content

Commit

Permalink
Run sync cluster resources as a goroutine in sandbox (#1231)
Browse files Browse the repository at this point in the history
* sandbox

Signed-off-by: Katrina Rogan <[email protected]>

* 1m

Signed-off-by: Katrina Rogan <[email protected]>

* amazing progress

Signed-off-by: Katrina Rogan <[email protected]>
  • Loading branch information
Katrina Rogan authored Jul 16, 2021
1 parent fa65fdf commit 07cc350
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 61 deletions.
8 changes: 4 additions & 4 deletions deployment/eks/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8121,7 +8121,7 @@ data:
value: "4"
- projectQuotaMemory:
value: "3000Mi"
refresh: 5m
refreshInterval: 1m
db.yaml: |
database:
port: 5432
Expand Down Expand Up @@ -8218,7 +8218,7 @@ data:
gpu: 1
kind: ConfigMap
metadata:
name: flyte-admin-config-dck98m94b6
name: flyte-admin-config-29g4dtt8tc
namespace: flyte
---
apiVersion: v1
Expand Down Expand Up @@ -8849,7 +8849,7 @@ spec:
- emptyDir: {}
name: shared-data
- configMap:
name: flyte-admin-config-dck98m94b6
name: flyte-admin-config-29g4dtt8tc
name: config-volume
- configMap:
name: clusterresource-template-tkdkkt4cb5
Expand Down Expand Up @@ -9137,7 +9137,7 @@ spec:
name: clusterresource-template-tkdkkt4cb5
name: resource-templates
- configMap:
name: flyte-admin-config-dck98m94b6
name: flyte-admin-config-29g4dtt8tc
name: config-volume
- name: db-pass
secret:
Expand Down
3 changes: 2 additions & 1 deletion deployment/eks/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ data:
- defaultIamRole:
value: arn:aws:iam::<ACCOUNT_NUMBER>:role/flyte-user-role
refresh: 5m
refreshInterval: 5m
templatePath: /etc/flyte/clusterresource/templates
---
# Source: flyte/templates/console/configmap.yaml
Expand Down Expand Up @@ -1326,7 +1327,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "e3cc10b39ebf2bce3554ebe08cbca8d51feb2b142ae93f142fd81ffb2652f6c"
configChecksum: "4aa9a2abfee56b62e33c3ae4c82a2c67d897636ffe28692c8827c124d95f179"
labels:
app.kubernetes.io/name: flyteadmin
app.kubernetes.io/instance: flyte
Expand Down
8 changes: 4 additions & 4 deletions deployment/gcp/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8119,7 +8119,7 @@ data:
value: "4"
- projectQuotaMemory:
value: "3000Mi"
refresh: 5m
refreshInterval: 1m
db.yaml: |
database:
port: 5432
Expand Down Expand Up @@ -8217,7 +8217,7 @@ data:
gpu: 1
kind: ConfigMap
metadata:
name: flyte-admin-config-864hmfdc2m
name: flyte-admin-config-7g6ctk6762
namespace: flyte
---
apiVersion: v1
Expand Down Expand Up @@ -8891,7 +8891,7 @@ spec:
- emptyDir: {}
name: shared-data
- configMap:
name: flyte-admin-config-864hmfdc2m
name: flyte-admin-config-7g6ctk6762
name: config-volume
- configMap:
name: clusterresource-template-tkdkkt4cb5
Expand Down Expand Up @@ -9179,7 +9179,7 @@ spec:
name: clusterresource-template-tkdkkt4cb5
name: resource-templates
- configMap:
name: flyte-admin-config-864hmfdc2m
name: flyte-admin-config-7g6ctk6762
name: config-volume
- name: db-pass
secret:
Expand Down
3 changes: 2 additions & 1 deletion deployment/gcp/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ data:
- defaultIamRole:
value: ""
refresh: 5m
refreshInterval: 5m
templatePath: /etc/flyte/clusterresource/templates
---
# Source: flyte/templates/console/configmap.yaml
Expand Down Expand Up @@ -3124,7 +3125,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "070eecc1e9de938efe34f9cabbff7efcf30b20a133e4ede077b7bf6a5fde947"
configChecksum: "6f72a1386c2d09c4a5c7f64f10d8559f153470fe644f68bcf50d0feccfca35a"
labels:
app.kubernetes.io/name: flyteadmin
app.kubernetes.io/instance: flyte
Expand Down
22 changes: 18 additions & 4 deletions deployment/sandbox/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ data:
value: "4"
- projectQuotaMemory:
value: "3000Mi"
refresh: 5m
refreshInterval: 1m
db.yaml: |
database:
port: 5432
Expand Down Expand Up @@ -2222,7 +2222,7 @@ data:
gpu: 1
kind: ConfigMap
metadata:
name: flyte-admin-config-7gmg5ffhdd
name: flyte-admin-config-g49kfbhmdf
namespace: flyte
---
apiVersion: v1
Expand Down Expand Up @@ -2903,6 +2903,20 @@ spec:
name: db-pass
- mountPath: /etc/secrets/
name: auth
- command:
- flyteadmin
- --config
- /etc/flyte/config/*.yaml
- clusterresource
- run
image: cr.flyte.org/flyteorg/flyteadmin:v0.6.10
imagePullPolicy: IfNotPresent
name: sync-cluster-resources-goroutine
volumeMounts:
- mountPath: /etc/flyte/clusterresource/templates
name: resource-templates
- mountPath: /etc/flyte/config
name: config-volume
- command:
- sh
- -c
Expand Down Expand Up @@ -3000,7 +3014,7 @@ spec:
- emptyDir: {}
name: shared-data
- configMap:
name: flyte-admin-config-7gmg5ffhdd
name: flyte-admin-config-g49kfbhmdf
name: config-volume
- name: db-pass
secret:
Expand Down Expand Up @@ -3412,7 +3426,7 @@ spec:
name: clusterresource-template-dtg8ff28mt
name: resource-templates
- configMap:
name: flyte-admin-config-7gmg5ffhdd
name: flyte-admin-config-g49kfbhmdf
name: config-volume
- name: db-pass
secret:
Expand Down
3 changes: 2 additions & 1 deletion deployment/sandbox/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ data:
- defaultIamRole:
value: ""
refresh: 5m
refreshInterval: 5m
templatePath: /etc/flyte/clusterresource/templates
---
# Source: flyte/templates/console/configmap.yaml
Expand Down Expand Up @@ -3289,7 +3290,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "01022a541ec245fb382df6cb533da25e5a5c058ee59a7c4f804aeb3aaa5fd90"
configChecksum: "0330846fbb9f22cddfd65abeed5ec540bc78a6ac7dbb456338fff2f7be7ccfe"
labels:
app.kubernetes.io/name: flyteadmin
app.kubernetes.io/instance: flyte
Expand Down
6 changes: 3 additions & 3 deletions deployment/test/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ data:
value: "4"
- projectQuotaMemory:
value: "3000Mi"
refresh: 5m
refreshInterval: 1m
db.yaml: |
database:
port: 5432
Expand Down Expand Up @@ -370,7 +370,7 @@ data:
gpu: 1
kind: ConfigMap
metadata:
name: flyte-admin-config-g5mt4b25k8
name: flyte-admin-config-kh795dtf68
namespace: flyte
---
apiVersion: v1
Expand Down Expand Up @@ -854,7 +854,7 @@ spec:
- emptyDir: {}
name: shared-data
- configMap:
name: flyte-admin-config-g5mt4b25k8
name: flyte-admin-config-kh795dtf68
name: config-volume
- name: db-pass
secret:
Expand Down
Loading

0 comments on commit 07cc350

Please sign in to comment.