Skip to content

Commit

Permalink
Make initial projects customizable (#1174)
Browse files Browse the repository at this point in the history
* Replace hardcoded namespace

Signed-off-by: Manuel Rombach <[email protected]>

* Allow defining the initial projects to create

Signed-off-by: Manuel Rombach <[email protected]>

Co-authored-by: Manuel Rombach <[email protected]>
  • Loading branch information
manuelrombach and Manuel Rombach authored Jun 25, 2021
1 parent f87ce34 commit 83da34d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ helm upgrade -f values-sandbox.yaml flyte .
| flyteadmin.image.pullPolicy | string | `"IfNotPresent"` | |
| flyteadmin.image.repository | string | `"cr.flyte.org/flyteorg/flyteadmin"` | Docker image for Flyteadmin deployment |
| flyteadmin.image.tag | string | `"v0.6.0"` | |
| flyteadmin.initialProjects | list | `["flytesnacks","flytetester","flyteexamples"]` | Initial projects to create |
| flyteadmin.nodeSelector | object | `{}` | nodeSelector for Flyteadmin deployment |
| flyteadmin.podAnnotations | object | `{}` | Annotations for Flyteadmin pods |
| flyteadmin.replicaCount | int | `1` | Replicas count for Flyteadmin deployment |
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/_helpers.tpl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ storage:
auth-type: accesskey
secret-key: miniostorage
disable-ssl: true
endpoint: http://minio.flyte.svc.cluster.local:9000
endpoint: http://minio.{{ .Release.Namespace }}.svc.cluster.local:9000
region: us-east-1
{{- else if eq .Values.storage.type "custom" }}
{{- with .Values.storage.custom -}}
Expand Down
8 changes: 5 additions & 3 deletions helm/templates/admin/deployment.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,23 @@ spec:
volumeMounts: {{- include "databaseSecret.volumeMount" . | nindent 10 }}
- mountPath: /etc/flyte/config
name: config-volume
{{- if .Values.flyteadmin.initialProjects }}
- command:
- flyteadmin
- --config
- {{ .Values.flyteadmin.configPath }}
- migrate
- seed-projects
- flytesnacks
- flytetester
- flyteexamples
{{- range .Values.flyteadmin.initialProjects }}
- {{ . }}
{{- end }}
image: "{{ .Values.flyteadmin.image.repository }}:{{ .Values.flyteadmin.image.tag }}"
imagePullPolicy: "{{ .Values.flyteadmin.image.pullPolicy }}"
name: seed-projects
volumeMounts: {{- include "databaseSecret.volumeMount" . | nindent 10 }}
- mountPath: /etc/flyte/config
name: config-volume
{{- end }}
{{- if .Values.cluster_resource_manager.enabled }}
- command:
- flyteadmin
Expand Down
5 changes: 5 additions & 0 deletions helm/values.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ flyteadmin:
memory: 50Mi
# -- Default regex string for searching configuration files
configPath: /etc/flyte/config/*.yaml
# -- Initial projects to create
initialProjects:
- flytesnacks
- flytetester
- flyteexamples
# -- Service settings for Flyteadmin
service:
annotations:
Expand Down

0 comments on commit 83da34d

Please sign in to comment.