Skip to content

Commit 3fb8761

Browse files
authored
bump console client (#572)
* bump console client * gen mocks
1 parent 463a421 commit 3fb8761

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ require (
4747
github.com/olekukonko/tablewriter v0.0.5
4848
github.com/packethost/packngo v0.29.0
4949
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
50-
github.com/pluralsh/console/go/client v1.17.1-0.20240918005717-8285a4b181b1
50+
github.com/pluralsh/console/go/client v1.22.3
5151
github.com/pluralsh/console/go/controller v0.0.0-20240918005717-8285a4b181b1
5252
github.com/pluralsh/gqlclient v1.12.2
5353
github.com/pluralsh/plural-operator v0.5.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
16991699
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
17001700
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
17011701
github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg=
1702-
github.com/pluralsh/console/go/client v1.17.1-0.20240918005717-8285a4b181b1 h1:aTQquJlO/yMJNy+D4q/9OYDWrTabWgIzTG+prOPuBmY=
1703-
github.com/pluralsh/console/go/client v1.17.1-0.20240918005717-8285a4b181b1/go.mod h1:lpoWASYsM9keNePS3dpFiEisUHEfObIVlSL3tzpKn8k=
1702+
github.com/pluralsh/console/go/client v1.22.3 h1:5CUV4E/EH5G84ZVIIdr4NuUzM92AKUrZBLEh2SjLeEc=
1703+
github.com/pluralsh/console/go/client v1.22.3/go.mod h1:lpoWASYsM9keNePS3dpFiEisUHEfObIVlSL3tzpKn8k=
17041704
github.com/pluralsh/console/go/controller v0.0.0-20240918005717-8285a4b181b1 h1:AXudlzS4Q8Y8J+0Q+kb8b4D/2tok4mryTJOKRvRlzJA=
17051705
github.com/pluralsh/console/go/controller v0.0.0-20240918005717-8285a4b181b1/go.mod h1:B0WeS6z0Ila4kTBosiMOjNsTKNHrvXRJuLoPT37MEzU=
17061706
github.com/pluralsh/controller-reconcile-helper v0.0.4 h1:1o+7qYSyoeqKFjx+WgQTxDz4Q2VMpzprJIIKShxqG0E=

hack/gen-client-mocks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cd $(dirname $0)/..
66

77
source hack/lib.sh
88

9-
CONTAINERIZE_IMAGE=golang:1.22.5 containerize ./hack/gen-client-mocks.sh
9+
CONTAINERIZE_IMAGE=golang:1.23.1 containerize ./hack/gen-client-mocks.sh
1010

1111
go run github.com/vektra/mockery/v2@latest --dir=pkg/api/ --name=Client --output=pkg/test/mocks
1212
go run github.com/vektra/mockery/v2@latest --dir=pkg/kubernetes --name=Kube --output=pkg/test/mocks

pkg/console/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type ConsoleClient interface {
4242
ListProviders() (*consoleclient.ListProviders, error)
4343
CreateProviderCredentials(name string, attr consoleclient.ProviderCredentialAttributes) (*consoleclient.CreateProviderCredential, error)
4444
DeleteProviderCredentials(id string) (*consoleclient.DeleteProviderCredential, error)
45-
SavePipeline(name string, attrs consoleclient.PipelineAttributes) (*consoleclient.PipelineFragment, error)
45+
SavePipeline(name string, attrs consoleclient.PipelineAttributes) (*consoleclient.PipelineFragmentMinimal, error)
4646
CreatePipelineContext(id string, attrs consoleclient.PipelineContextAttributes) (*consoleclient.PipelineContextFragment, error)
4747
GetPipelineContext(id string) (*consoleclient.PipelineContextFragment, error)
4848
CreateCluster(attributes consoleclient.ClusterAttributes) (*consoleclient.CreateCluster, error)

pkg/console/pipelines.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type Gate struct {
4444
Cluster string `json:"cluster"`
4545
}
4646

47-
func (c *consoleClient) SavePipeline(name string, attrs gqlclient.PipelineAttributes) (*gqlclient.PipelineFragment, error) {
47+
func (c *consoleClient) SavePipeline(name string, attrs gqlclient.PipelineAttributes) (*gqlclient.PipelineFragmentMinimal, error) {
4848
result, err := c.client.SavePipeline(c.ctx, name, attrs)
4949
if err != nil {
5050
return nil, api.GetErrorResponse(err, "SavePipeline")

pkg/test/mocks/Client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/test/mocks/ConsoleClient.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/test/mocks/Kube.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)