10000 feat: support configuring init container image by rudeigerc · Pull Request #443 · InftyAI/llmaz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: support configuring init container image #443

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

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

Conversation

rudeigerc
Copy link
Contributor

What this PR does / why we need it

This pull request supports configuring the init container image via init-container-image in config.data.

Which issue(s) this PR fixes

Closes #350

Special notes for your reviewer

Please note that only integration tests have been implemented. I think unit tests could be appended after #434 is merged.

Does this PR introduce a user-facing change?

Support configuring the init container image via `init-container-image` in the global configuration.

@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jun 6, 2025
@InftyAI-Agent InftyAI-Agent requested review from kerthcet June 6, 2025 14:54
@rudeigerc rudeigerc force-pushed the feat/init-container-image branch 3 times, most recently from 70861f4 to 621c32d Compare June 6, 2025 16:58
@kerthcet
Copy link
Member
kerthcet commented Jun 7, 2025

/kind feature

Will continue the review work later.

@InftyAI-Agent InftyAI-Agent added feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jun 7, 2025
8000
@kerthcet
Copy link
Member

we need to solve the conflicts first.

@rudeigerc
Copy link
Contributor Author

@kerthcet Got it. I'll fix the conflicts first and then complement the related unit tests.

@rudeigerc rudeigerc force-pushed the feat/init-container-image branch 2 times, most recently from bce4990 to 8ea73a9 Compare June 17, 2025 14:34
Signed-off-by: rudeigerc <rudeigerc@gmail.com>
@rudeigerc rudeigerc force-pushed the feat/init-container-image branch from 8ea73a9 to 37925eb Compare June 17, 2025 15:44
@@ -72,6 +72,22 @@ func ValidateService(ctx context.Context, k8sClient client.Client, service *infe
models = append(models, model)
}

// Fetch global configuration.
Copy link
Member

Choose a reason for hiding this comment

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

in line 117
we already have:

if err := ValidateConfigmap(ctx, k8sClient, service); err != nil {
	return err
}

Is this not enough or can we merge?

Copy link
Member

Choose a reason for hiding this comment

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

Let's move to the ValidateConfigmap

Copy link
Member
@kerthcet kerthcet left a comment

Choose a reason for hiding this comment

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

Generally LGTM.

initContainerName := MODEL_LOADER_CONTAINER_NAME
if index != 0 {
initContainerName += "-" + strconv.Itoa(index)
}

if initContainerImage == "" {
initContainerImage = pkg.LOADER_IMAGE
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, we can totally remove the LOADER_IMAGE in the follow up. The configmap is the single source of truth.

@@ -72,6 +72,22 @@ func ValidateService(ctx context.Context, k8sClient client.Client, service *infe
models = append(models, model)
}

// Fetch global configuration.
Copy link
Member

Choose a reason for hiding this comment

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

Let's move to the ValidateConfigmap

@googs1025
Copy link
Member

@rudeigerc any updated?

@rudeigerc
Copy link
Contributor Author

@googs1025 Thanks for the reminder. I am out of bandwidth recently, but I will try to make an update this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Categorizes issue or PR as related to a new feature. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can this initcontainer image be configurable?
4 participants
0