Skip to content

Commit 522d602

Browse files
committed
update: drop writen wva into params.env as kserve does not consume it
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
1 parent 19de3dc commit 522d602

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/controller/components/modelcontroller/modelcontroller_actions.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ func initialize(_ context.Context, rr *odhtypes.ReconciliationRequest) error {
4141
nimState = mc.Spec.Kserve.NIM.ManagementState
4242
}
4343

44-
wvaState := operatorv1.Removed
4544
if mc.Spec.Kserve.ManagementState == operatorv1.Managed {
46-
wvaState = mc.Spec.Kserve.WVA.ManagementState
47-
if wvaState == operatorv1.Managed {
45+
if mc.Spec.Kserve.WVA.ManagementState == operatorv1.Managed {
4846
rr.Manifests = append(rr.Manifests, wvaManifestsPath())
4947
}
5048
}
@@ -56,7 +54,6 @@ func initialize(_ context.Context, rr *odhtypes.ReconciliationRequest) error {
5654

5755
extraParamsMap := map[string]string{
5856
"nim-state": strings.ToLower(string(nimState)),
59-
"wva-state": strings.ToLower(string(wvaState)),
6057
"kserve-state": strings.ToLower(string(mc.Spec.Kserve.ManagementState)),
6158
"modelregistry-state": strings.ToLower(string(mrState)),
6259
}

0 commit comments

Comments
 (0)