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

kserve: do not call ApplyParams for the empty list #1179

Merged

Conversation

ykaliuta
Copy link
Contributor

@ykaliuta ykaliuta commented Aug 15, 2024

The call is not need since the code just declare empty parameters list:
var imageParamMap = map[string]string{}

Fixes the issue of calling ApplyParams for non-enabled case.

Credits-to: Wen Zhou wenzhou@redhat.com

Description

How Has This Been Tested?

Screenshot or short clip

Merge criteria

  • You have read the contributors guide.
  • Commit messages are meaningful - have a clear and concise summary and detailed explanation of what was changed and why.
  • Pull Request contains a description of the solution, a link to the JIRA issue, and to any dependent or related Pull Request.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@openshift-ci openshift-ci bot requested review from adelton and asanzgom August 15, 2024 07:35
@zdtsw
Copy link
Member

zdtsw commented Aug 15, 2024

thanks for the fix, it is introduced without intention.

after offline discussion, we realized this caller is not necessary at all.

The call is not need since the code just declare empty parameters
list:
        var imageParamMap = map[string]string{}

Fixes the issue of calling ApplyParams for non-enabled case.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
@ykaliuta ykaliuta force-pushed the kserve-apply-params branch from 49d5cd4 to 41382ac Compare August 15, 2024 08:30
@openshift-ci openshift-ci bot removed the lgtm label Aug 15, 2024
@ykaliuta ykaliuta changed the title kserve: call ApplyParams only for enabled case kserve: do not call ApplyParams for the empty list Aug 15, 2024
@openshift-ci openshift-ci bot added the lgtm label Aug 15, 2024
Copy link

openshift-ci bot commented Aug 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zdtsw

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

The pull request process is described 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

@ykaliuta
Copy link
Contributor Author

/retest-required

@openshift-merge-bot openshift-merge-bot bot merged commit db144ed into opendatahub-io:incubation Aug 16, 2024
8 checks passed
zdtsw referenced this pull request in zdtsw-forking/rhods-operator Aug 29, 2024
…ices#1179)

The call is not need since the code just declare empty parameters
list:
        var imageParamMap = map[string]string{}

Fixes the issue of calling ApplyParams for non-enabled case.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
(cherry picked from commit db144ed)
openshift-merge-bot bot referenced this pull request in red-hat-data-services/rhods-operator Aug 29, 2024
The call is not need since the code just declare empty parameters
list:
        var imageParamMap = map[string]string{}

Fixes the issue of calling ApplyParams for non-enabled case.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
(cherry picked from commit db144ed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants