Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make initial projects customizable #1174

Merged
merged 2 commits into from
Jun 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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