Changeset View
Changeset View
Standalone View
Standalone View
helm/dagster/templates/helpers/_helpers.tpl
Show All 18 Lines | |||||
{{- if contains $name .Release.Name -}} | {{- if contains $name .Release.Name -}} | ||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||||
{{- else -}} | {{- else -}} | ||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||||
{{- end -}} | {{- end -}} | ||||
{{- end -}} | {{- end -}} | ||||
{{- end -}} | {{- end -}} | ||||
# Image utils | |||||
{{- define "image.job_image" -}} | |||||
"{{- .repository -}}:{{- .tag -}}" | |||||
{{- end -}} | |||||
# Dagit image e.g. repo/foo:bar | # Dagit image e.g. repo/foo:bar | ||||
{{- define "dagster.dagit_image" -}} | {{- define "dagster.dagit_image" -}} | ||||
{{ required "Dagit image repository .Values.dagit.image.repository is required" .Values.dagit.image.repository -}} | {{ required "Dagit image repository .Values.dagit.image.repository is required" .Values.dagit.image.repository -}} | ||||
: | : | ||||
{{- required "Dagit image tag .Values.dagit.image.tag is required" .Values.dagit.image.tag }} | {{- required "Dagit image tag .Values.dagit.image.tag is required" .Values.dagit.image.tag }} | ||||
{{- end -}} | {{- end -}} | ||||
# Dagster Run Launcher | # Dagster Run Launcher | ||||
▲ Show 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | |||||
DAGSTER_K8S_CELERY_BACKEND: "{{ template "dagster.celery.backend_url" . }}" | DAGSTER_K8S_CELERY_BACKEND: "{{ template "dagster.celery.backend_url" . }}" | ||||
DAGSTER_K8S_PG_PASSWORD_SECRET: "{{ template "dagster.fullname" .}}-postgresql-secret" | DAGSTER_K8S_PG_PASSWORD_SECRET: "{{ template "dagster.fullname" .}}-postgresql-secret" | ||||
DAGSTER_K8S_INSTANCE_CONFIG_MAP: "{{ template "dagster.fullname" .}}-instance" | DAGSTER_K8S_INSTANCE_CONFIG_MAP: "{{ template "dagster.fullname" .}}-instance" | ||||
DAGSTER_K8S_PIPELINE_RUN_NAMESPACE: "{{ .Release.Namespace }}" | DAGSTER_K8S_PIPELINE_RUN_NAMESPACE: "{{ .Release.Namespace }}" | ||||
DAGSTER_K8S_PIPELINE_RUN_ENV_CONFIGMAP: "{{ template "dagster.fullname" . }}-pipeline-env" | DAGSTER_K8S_PIPELINE_RUN_ENV_CONFIGMAP: "{{ template "dagster.fullname" . }}-pipeline-env" | ||||
DAGSTER_K8S_PIPELINE_RUN_IMAGE: "{{- .Values.pipelineRun.image.repository -}}:{{- .Values.pipelineRun.image.tag -}}" | DAGSTER_K8S_PIPELINE_RUN_IMAGE: "{{- .Values.pipelineRun.image.repository -}}:{{- .Values.pipelineRun.image.tag -}}" | ||||
DAGSTER_K8S_PIPELINE_RUN_IMAGE_PULL_POLICY: "{{ .Values.pipelineRun.image.pullPolicy }}" | DAGSTER_K8S_PIPELINE_RUN_IMAGE_PULL_POLICY: "{{ .Values.pipelineRun.image.pullPolicy }}" | ||||
{{- end -}} | {{- end -}} | ||||
No newline at end of file | No newline at end of file |