Skip to content

Commit

Permalink
PLT-1216:Add Explicit time out to 60 sec for addon profile as day 2 o…
Browse files Browse the repository at this point in the history
…peration
  • Loading branch information
SivaanandM committed May 27, 2024
1 parent dbae34a commit dea98af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"strings"
"time"

"github.com/spectrocloud/hapi/apiutil/transport"
hashboardC "github.com/spectrocloud/hapi/hashboard/client/v1"
Expand Down Expand Up @@ -199,7 +200,7 @@ func (h *V1Client) UpdateClusterProfileValues(uid, context string, profiles *mod
params = clusterC.NewV1SpectroClustersUpdateProfilesParams().WithUID(uid).
WithBody(profiles).WithResolveNotification(Ptr(true))
}

params = params.WithTimeout(60 * time.Second)
_, err := h.GetClusterClient().V1SpectroClustersUpdateProfiles(params)
return err
}
Expand Down

0 comments on commit dea98af

Please sign in to comment.