-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
base: main
Are you sure you want to change the base?
Conversation
70861f4
to
621c32d
Compare
/kind feature Will continue the review work later. |
we need to solve the conflicts first. |
@kerthcet Got it. I'll fix the conflicts first and then complement the related unit tests. |
bce4990
to
8ea73a9
Compare
Signed-off-by: rudeigerc <rudeigerc@gmail.com>
8ea73a9
to
37925eb
Compare
@@ -72,6 +72,22 @@ func ValidateService(ctx context.Context, k8sClient client.Client, service *infe | |||
models = append(models, model) | |||
} | |||
|
|||
// Fetch global configuration. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
@rudeigerc any updated? |
@googs1025 Thanks for the reminder. I am out of bandwidth recently, but I will try to make an update this weekend. |
What this PR does / why we need it
This pull request supports configuring the init container image via
init-container-image
inconfig.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?