-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add job for ML observability workflow registration
- Loading branch information
1 parent
c44f52b
commit 611513b
Showing
5 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ maintainers: | |
- email: [email protected] | ||
name: caraml-dev | ||
name: merlin | ||
version: 0.13.12 | ||
version: 0.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
charts/merlin/templates/mlobs-bootstrap-job-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.mlobs.bootstrap.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "merlin.resource-prefix" . }}-mlobs-bootstrap | ||
data: | ||
config.yaml: | | ||
{{- with .Values.mlobs.bootstrap.flyte.config }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if .Values.mlobs.bootstrap.enabled }} | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: {{ template "merlin.resource-prefix" . }}-mlobs-bootstrap | ||
annotations: | ||
"helm.sh/hook": post-upgrade,post-install | ||
"helm.sh/hook-delete-policy": before-hook-creation | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: mlobs-bootstrap | ||
image: "{{ .Values.deployment.image.registry }}/{{ .Values.mlobs.bootstrap.flyte.workflowImageName }}:{{ .Values.mlobs.bootstrap.flyte.workflowImageTagOverride | default .Values.deployment.image.tag }}" | ||
command: | ||
- make | ||
- register | ||
env: | ||
- name: FLYTE_PROJECT | ||
value: {{ .Values.mlobs.bootstrap.flyte.project }} | ||
- name: FLYTE_DOMAIN | ||
value: {{ .Values.mlobs.bootstrap.flyte.domain }} | ||
- name: WORKFLOW_IMAGE | ||
value: "{{ .Values.deployment.image.registry }}/{{ .Values.mlobs.bootstrap.flyte.workflowImageName }}:{{ .Values.mlobs.bootstrap.flyte.workflowImageTagOverride | default .Values.deployment.image.tag }}" | ||
- name: WORKFLOW_VERSION | ||
value: {{ .Values.mlobs.bootstrap.flyte.workflowImageTagOverride | default .Values.deployment.image.tag }} | ||
resources: | ||
{{- toYaml .Values.mlobs.bootstrap.resources | nindent 10 }} | ||
volumeMounts: | ||
- name: flyte-config | ||
mountPath: /root/.flyte/ | ||
readOnly: true | ||
restartPolicy: Never | ||
volumes: | ||
- name: flyte-config | ||
configMap: | ||
name: {{ template "merlin.resource-prefix" . }}-mlobs-bootstrap | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters