Skip to content

Commit

Permalink
sync-cluster-resources before FlyteAdmin starts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanburns committed Oct 23, 2019
1 parent 3966f52 commit bc4d3ae
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deployment/sandbox/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,21 @@ spec:
volumeMounts:
- mountPath: /etc/flyte/config
name: config-volume
- command:
- flyteadmin
- --logtostderr
- --config
- /etc/flyte/config/flyteadmin_config.yaml
- clusterresource
- sync
image: docker.io/lyft/flyteadmin:v0.1.1
imagePullPolicy: IfNotPresent
name: sync-cluster-resources
volumeMounts:
- mountPath: /etc/flyte/clusterresource/templates
name: resource-templates
- mountPath: /etc/flyte/config
name: config-volume
serviceAccountName: flyteadmin
volumes:
- emptyDir: {}
Expand Down
15 changes: 15 additions & 0 deletions deployment/test/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,21 @@ spec:
volumeMounts:
- mountPath: /etc/flyte/config
name: config-volume
- command:
- flyteadmin
- --logtostderr
- --config
- /etc/flyte/config/flyteadmin_config.yaml
- clusterresource
- sync
image: docker.io/lyft/flyteadmin:v0.1.1
imagePullPolicy: IfNotPresent
name: sync-cluster-resources
volumeMounts:
- mountPath: /etc/flyte/clusterresource/templates
name: resource-templates
- mountPath: /etc/flyte/config
name: config-volume
serviceAccountName: flyteadmin
volumes:
- emptyDir: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ spec:
volumeMounts:
- name: config-volume
mountPath: /etc/flyte/config
- name: sync-cluster-resources
image: docker.io/lyft/flyteadmin:v0.1.1
imagePullPolicy: IfNotPresent
command: ["flyteadmin", "--logtostderr", "--config", "/etc/flyte/config/flyteadmin_config.yaml", "clusterresource", "sync"]
volumeMounts:
- name: resource-templates
mountPath: /etc/flyte/clusterresource/templates
- name: config-volume
mountPath: /etc/flyte/config
containers:
- name: flyteadmin
resources:
Expand Down

0 comments on commit bc4d3ae

Please sign in to comment.