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

[dagster-k8s] infer image from dagster/image tag in PipesK8sClient #26629

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielgafni
Copy link
Contributor

@danielgafni danielgafni commented Dec 20, 2024

Summary & Motivation

This should improve K8s Pipes UX in the obvious case of running only one container with no image provided from the user.

How I Tested These Changes

Existing tests

Changelog

[dagster-k8s] PipesK8sClient now defaults to using the image from dagster/image Run tag when running one container in the pod.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@danielgafni danielgafni marked this pull request as ready for review December 20, 2024 14:46
Comment on lines +429 to +430
if not base_pod_spec or len(base_pod_spec.get("containers", [])) == 1:
image = image or context.dagster_run.tags.get(DOCKER_IMAGE_TAG)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could also fetch this using the same logic the run launcher does, but the run launcher does also set this tag, so I suppose either works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to assert in some fashion that it is non-null after doing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants