diff --git a/components/kserve/kserve_config_handler.go b/components/kserve/kserve_config_handler.go index 46df279e753..26df686d4de 100644 --- a/components/kserve/kserve_config_handler.go +++ b/components/kserve/kserve_config_handler.go @@ -80,10 +80,12 @@ func (k *Kserve) setDefaultDeploymentMode(ctx context.Context, cli client.Client if err = json.Unmarshal([]byte(inferenceServiceConfigMap.Data["ingress"]), &ingressData); err != nil { return fmt.Errorf("error retrieving value for key 'ingress' from configmap %s. %w", KserveConfigMapName, err) } + clusterDomain, err := cluster.GetDomain(ctx, cli) + if err != nil { + return fmt.Errorf("error retrieving cluster domain %s. %w", KserveConfigMapName, err) + } if defaultmode == RawDeployment { - ingressData["disableIngressCreation"] = true - } else { - ingressData["disableIngressCreation"] = false + ingressData["ingressDomain"] = clusterDomain } ingressDataBytes, err := json.MarshalIndent(ingressData, "", " ") if err != nil {