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

update driver & launcher image handling #11533

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HumairAK
Copy link
Collaborator

Description of your changes:

This change relies on manifest yamls to specify the launcher & driver that is pinned to a specific KFP version. The goal is to decouple having to build launcher/driver at separate stages relative to api server.

This is accomplished by setting the hardcoded default to point to "latest" and during release, api server is built with this hardcoding, and the images for driver/launcher are patched into manifests post build along with the other images.

The apiserver deployment manifest is reformatted using yq so the next time the release.sh is ran, the user is not surprised by the entire file reformatting unexpectedly.

A PR with update to the release docs will follow.

Checklist:

This change relies on manifest yamls to specify the launcher & driver
that is pinned to a specific KFP version. The goal is to decouple having
to build launcher/driver at separate stages compared to api server.

This is accomplished by setting the hardcoded default to point to
"latest" and during release, api server is built with this hardcoding,
and the images for driver/launcher are patched into manifests post build
along with the other images.

The apiserver deployment manifest is reformatted using yq so the next
time the release.sh is ran, the user is not surprised by the entire file
reformatting unexpectedly.

Signed-off-by: Humair Khan <[email protected]>
@HumairAK
Copy link
Collaborator Author

cc @chensun

@google-oss-prow google-oss-prow bot requested review from gkcalat and mprahl January 16, 2025 23:06
@HumairAK HumairAK requested review from chensun and removed request for gkcalat January 16, 2025 23:06
Signed-off-by: Humair Khan <[email protected]>
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from humairak. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -30,9 +30,9 @@ import (
const (
volumeNameKFPLauncher = "kfp-launcher"
volumeNameCABundle = "ca-bundle"
DefaultLauncherImage = "ghcr.io/kubeflow/kfp-launcher:2.4.0"
DefaultLauncherImage = "ghcr.io/kubeflow/kfp-launcher:latest"
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add a comment above mentioning that the latest tag will be replaced by with a pinned version at release time?

Copy link
Collaborator Author

@HumairAK HumairAK Jan 30, 2025

Choose a reason for hiding this comment

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

@chensun the goal is to pin the version from the manifests, seen here

Apologies for the large diff on the yaml, the only change is what is highlighted above in the link, the rest is just fixing indenting. The idea is to keep this latest in code (even for releases) and update the version in the manifests so we can build all these images (including api server, etc.) all at once during releases. Let me know what you think about this. Having versions embedded in code, requires us to always build driver/launcher, then commiting code changes first, before initiating the rest of the image builds afterwards.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If there is concern about having latest in code, in a release version, we can also make the driver/launcher env vars a hard requirement, and throw an error when it is not provided, and simply not have a default hardcoded tag at all

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

Successfully merging this pull request may close these issues.

2 participants