Skip to content

Commit 888fe26

Browse files
authored
Merge pull request #148 from crossplane-contrib/renovate/github.com-crossplane-function-sdk-go-0.x
fix(deps): update module github.com/crossplane/function-sdk-go to v0.4.0
2 parents b63ed73 + 4defdd2 commit 888fe26

File tree

6 files changed

+601
-510
lines changed

6 files changed

+601
-510
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ on:
1414

1515
env:
1616
# Common versions
17-
GO_VERSION: '1.22.9'
18-
GOLANGCI_VERSION: 'v1.54.2'
17+
GO_VERSION: '1.23.4'
18+
GOLANGCI_VERSION: 'v1.62.2'
1919
DOCKER_BUILDX_VERSION: 'v0.11.2'
2020

2121
# These environment variables are important to the Crossplane CLI install.sh

fn.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
1414

1515
fncontext "github.com/crossplane/function-sdk-go/context"
16-
fnv1beta1 "github.com/crossplane/function-sdk-go/proto/v1beta1"
16+
fnv1 "github.com/crossplane/function-sdk-go/proto/v1"
1717
"github.com/crossplane/function-sdk-go/request"
1818
"github.com/crossplane/function-sdk-go/resource"
1919
"github.com/crossplane/function-sdk-go/resource/composed"
@@ -24,13 +24,13 @@ import (
2424

2525
// Function performs patch-and-transform style Composition.
2626
type Function struct {
27-
fnv1beta1.UnimplementedFunctionRunnerServiceServer
27+
fnv1.UnimplementedFunctionRunnerServiceServer
2828

2929
log logging.Logger
3030
}
3131

3232
// RunFunction runs the Function.
33-
func (f *Function) RunFunction(ctx context.Context, req *fnv1beta1.RunFunctionRequest) (*fnv1beta1.RunFunctionResponse, error) { //nolint:gocyclo // See below.
33+
func (f *Function) RunFunction(ctx context.Context, req *fnv1.RunFunctionRequest) (*fnv1.RunFunctionResponse, error) { //nolint:gocyclo // See below.
3434
// This loop is fairly complex, but more readable with less abstraction.
3535

3636
log := f.log.WithValues("tag", req.GetMeta().GetTag())
@@ -274,7 +274,7 @@ func (f *Function) RunFunction(ctx context.Context, req *fnv1beta1.RunFunctionRe
274274
}
275275

276276
if skipped > 0 {
277-
rsp.GetDesired().GetComposite().Ready = fnv1beta1.Ready_READY_FALSE
277+
rsp.GetDesired().GetComposite().Ready = fnv1.Ready_READY_FALSE
278278
}
279279

280280
if err := response.SetDesiredComposedResources(rsp, desired); err != nil {

0 commit comments

Comments
 (0)