From 540e23d6ecf67dff816e5803fb20f10bd00f5ed7 Mon Sep 17 00:00:00 2001 From: Vedant Mahabaleshwarkar Date: Thu, 12 Sep 2024 15:48:43 -0400 Subject: [PATCH] set clusterDomain regardless of defaultDeploymentMode Signed-off-by: Vedant Mahabaleshwarkar --- components/kserve/kserve_config_handler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/kserve/kserve_config_handler.go b/components/kserve/kserve_config_handler.go index 26df686d4de..03b01cc6989 100644 --- a/components/kserve/kserve_config_handler.go +++ b/components/kserve/kserve_config_handler.go @@ -84,9 +84,7 @@ func (k *Kserve) setDefaultDeploymentMode(ctx context.Context, cli client.Client if err != nil { return fmt.Errorf("error retrieving cluster domain %s. %w", KserveConfigMapName, err) } - if defaultmode == RawDeployment { - ingressData["ingressDomain"] = clusterDomain - } + ingressData["ingressDomain"] = clusterDomain ingressDataBytes, err := json.MarshalIndent(ingressData, "", " ") if err != nil { return fmt.Errorf("could not set values in configmap %s. %w", KserveConfigMapName, err)