@@ -363,7 +363,7 @@ func (d *Deployer) GetPlatformInfo(ctx context.Context) map[string]string {
363363 }
364364
365365 // KServe version — from the controller deployment image tag
366- for _ , ns := range []string {"opendatahub" , "kserve" , "kserve-system" } {
366+ for _ , ns := range []string {"opendatahub" , "redhat-ods-applications" , " kserve" , "kserve-system" } {
367367 output , err := d .Kubectl (ctx , "get" , "deployment" , "-n" , ns , "-l" ,
368368 "control-plane=kserve-controller-manager" ,
369369 "-o" , "jsonpath={.items[0].spec.template.spec.containers[0].image}" )
@@ -378,7 +378,7 @@ func (d *Deployer) GetPlatformInfo(ctx context.Context) map[string]string {
378378 }
379379
380380 // vLLM image — from the inferenceservice-config configmap
381- for _ , ns := range []string {"opendatahub" , "kserve" , "kserve-system" } {
381+ for _ , ns := range []string {"opendatahub" , "redhat-ods-applications" , " kserve" , "kserve-system" } {
382382 output , err := d .Kubectl (ctx , "get" , "configmap" , "inferenceservice-config" , "-n" , ns ,
383383 "-o" , "jsonpath={.data.storageInitializer}" )
384384 if err == nil && strings .TrimSpace (output ) != "" {
@@ -481,7 +481,7 @@ func (d *Deployer) ensurePullSecrets(ctx context.Context, manifestPath, ns strin
481481 }
482482 }
483483
484- sourceNamespaces := []string {"istio-system" , "kserve" , "opendatahub" }
484+ sourceNamespaces := []string {"istio-system" , "kserve" , "opendatahub" , "redhat-ods-applications" }
485485 for secretName := range seen {
486486 // Skip if already exists in target namespace
487487 if _ , err := d .Kubectl (ctx , "get" , "secret" , secretName , "-n" , ns ); err == nil {
@@ -588,6 +588,30 @@ func (d *Deployer) patchManifest(manifestPath string, tc *config.TestCase) (stri
588588 }
589589 }
590590
591+ // Patch imagePullSecrets name if overridden
592+ if d .PullSecretName != "" {
593+ inPullSecrets := false
594+ for i , line := range lines {
595+ trimmed := strings .TrimSpace (line )
596+ if trimmed == "imagePullSecrets:" {
597+ inPullSecrets = true
598+ continue
599+ }
600+ if inPullSecrets {
601+ if strings .HasPrefix (trimmed , "- name: " ) {
602+ indent := line [:len (line )- len (strings .TrimLeft (line , " " ))]
603+ lines [i ] = fmt .Sprintf ("%s- name: %s" , indent , d .PullSecretName )
604+ patched = true
605+ continue
606+ }
607+ inPullSecrets = false
608+ }
609+ }
610+ if patched {
611+ d .logProgress (" Patched imagePullSecrets to use %s" , d .PullSecretName )
612+ }
613+ }
614+
591615 // Mock mode: replace main vLLM container with mock image (no GPU, no model download)
592616 // Only patches under spec.template.containers, NOT spec.router.scheduler.template.containers
593617 if d .MockImage != "" {
0 commit comments