Skip to content

Commit

Permalink
set clusterDomain regardless of defaultDeploymentMode
Browse files Browse the repository at this point in the history
Signed-off-by: Vedant Mahabaleshwarkar <vmahabal@redhat.com>
  • Loading branch information
VedantMahabaleshwarkar committed Sep 12, 2024
1 parent 69f0236 commit 540e23d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/kserve/kserve_config_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 540e23d

Please sign in to comment.