Skip to content

Commit

Permalink
bump console client (#572)
Browse files Browse the repository at this point in the history
* bump console client

* gen mocks
  • Loading branch information
zreigz authored Nov 4, 2024
1 parent 463a421 commit 3fb8761
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ require (
github.com/olekukonko/tablewriter v0.0.5
github.com/packethost/packngo v0.29.0
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/pluralsh/console/go/client v1.17.1-0.20240918005717-8285a4b181b1
github.com/pluralsh/console/go/client v1.22.3
github.com/pluralsh/console/go/controller v0.0.0-20240918005717-8285a4b181b1
github.com/pluralsh/gqlclient v1.12.2
github.com/pluralsh/plural-operator v0.5.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1699,8 +1699,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg=
github.com/pluralsh/console/go/client v1.17.1-0.20240918005717-8285a4b181b1 h1:aTQquJlO/yMJNy+D4q/9OYDWrTabWgIzTG+prOPuBmY=
github.com/pluralsh/console/go/client v1.17.1-0.20240918005717-8285a4b181b1/go.mod h1:lpoWASYsM9keNePS3dpFiEisUHEfObIVlSL3tzpKn8k=
github.com/pluralsh/console/go/client v1.22.3 h1:5CUV4E/EH5G84ZVIIdr4NuUzM92AKUrZBLEh2SjLeEc=
github.com/pluralsh/console/go/client v1.22.3/go.mod h1:lpoWASYsM9keNePS3dpFiEisUHEfObIVlSL3tzpKn8k=
github.com/pluralsh/console/go/controller v0.0.0-20240918005717-8285a4b181b1 h1:AXudlzS4Q8Y8J+0Q+kb8b4D/2tok4mryTJOKRvRlzJA=
github.com/pluralsh/console/go/controller v0.0.0-20240918005717-8285a4b181b1/go.mod h1:B0WeS6z0Ila4kTBosiMOjNsTKNHrvXRJuLoPT37MEzU=
github.com/pluralsh/controller-reconcile-helper v0.0.4 h1:1o+7qYSyoeqKFjx+WgQTxDz4Q2VMpzprJIIKShxqG0E=
Expand Down
2 changes: 1 addition & 1 deletion hack/gen-client-mocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd $(dirname $0)/..

source hack/lib.sh

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

go run github.com/vektra/mockery/v2@latest --dir=pkg/api/ --name=Client --output=pkg/test/mocks
go run github.com/vektra/mockery/v2@latest --dir=pkg/kubernetes --name=Kube --output=pkg/test/mocks
Expand Down
2 changes: 1 addition & 1 deletion pkg/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type ConsoleClient interface {
ListProviders() (*consoleclient.ListProviders, error)
CreateProviderCredentials(name string, attr consoleclient.ProviderCredentialAttributes) (*consoleclient.CreateProviderCredential, error)
DeleteProviderCredentials(id string) (*consoleclient.DeleteProviderCredential, error)
SavePipeline(name string, attrs consoleclient.PipelineAttributes) (*consoleclient.PipelineFragment, error)
SavePipeline(name string, attrs consoleclient.PipelineAttributes) (*consoleclient.PipelineFragmentMinimal, error)
CreatePipelineContext(id string, attrs consoleclient.PipelineContextAttributes) (*consoleclient.PipelineContextFragment, error)
GetPipelineContext(id string) (*consoleclient.PipelineContextFragment, error)
CreateCluster(attributes consoleclient.ClusterAttributes) (*consoleclient.CreateCluster, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/console/pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Gate struct {
Cluster string `json:"cluster"`
}

func (c *consoleClient) SavePipeline(name string, attrs gqlclient.PipelineAttributes) (*gqlclient.PipelineFragment, error) {
func (c *consoleClient) SavePipeline(name string, attrs gqlclient.PipelineAttributes) (*gqlclient.PipelineFragmentMinimal, error) {
result, err := c.client.SavePipeline(c.ctx, name, attrs)
if err != nil {
return nil, api.GetErrorResponse(err, "SavePipeline")
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/mocks/Client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pkg/test/mocks/ConsoleClient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/test/mocks/Kube.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fb8761

Please sign in to comment.