diff --git a/client/cluster.go b/client/cluster.go index d56a5d11..8f7f6103 100644 --- a/client/cluster.go +++ b/client/cluster.go @@ -294,14 +294,11 @@ func (h *V1Client) DownloadLogs(uid string, logFetcherUid string) (io.Writer, er func (h *V1Client) UpdatePauseAgentUpgradeSettingCluster(upgradeSetting *models.V1ClusterUpgradeSettingsEntity, clusterUID string, context string) error { - //params := clientV1.NewV1SpectroClustersUIDUpgradesPutParamsWithContext(h.ctx) - //params := clientV1.NewV1SpectroClustersUIDUpgradesPutParams + //params := clientV1.NewV1SpectroClustersUIDUpgradeSettingsParamsWithContext(h.ctx) //params = params.WithUID(clusterUID).WithBody(upgradeSetting) - //_, err := h.Client.V1SpectroClustersUIDUpgradesPut() - // + //_, err := h.GetClusterClient().V1SpectroClustersUIDUpgradeSettings(params) //if err != nil { // return err //} - return nil } diff --git a/go.mod b/go.mod index c240249e..b93c82ca 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/go-openapi/strfmt v0.21.7 github.com/pkg/errors v0.9.1 github.com/spectrocloud/gomi v1.14.0 - github.com/spectrocloud/palette-api-go v0.2.3 + github.com/spectrocloud/palette-api-go v0.2.5 github.com/stretchr/testify v1.8.4 ) @@ -41,4 +41,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/spectrocloud/palette-api-go => ../palette-api-go +//replace github.com/spectrocloud/palette-api-go => ../palette-api-go diff --git a/go.sum b/go.sum index 31224a8b..2f0457be 100644 --- a/go.sum +++ b/go.sum @@ -548,6 +548,8 @@ github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4k github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spectrocloud/gomi v1.14.0 h1:XwOqPssfX1D1tRr1EzUgRULrdncubZG1O/zp/7DuSyU= github.com/spectrocloud/gomi v1.14.0/go.mod h1:rPAwipFWzjYkTfx44KmQazP1NR2cnHe7HSFZkc63mf4= +github.com/spectrocloud/palette-api-go v0.2.5 h1:x4oJZGtqQ/ijm4j4M0lRZ28TpznHDkOEQQQ6L56UYG8= +github.com/spectrocloud/palette-api-go v0.2.5/go.mod h1:9ebu529ThhudXje/65A2kjdngBN0sf1ei/DDrXgYPQM= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/cast v1.2.0/go.mod h1:r2rcYCSwa1IExKTDiTfzaxqT2FNHs8hODu4LnUfgKEg=