Skip to content

Commit 589dd7d

Browse files
fix(deps): update module github.com/crossplane/function-sdk-go to v0.7.0 (#201)
* fix(deps): update module github.com/crossplane/function-sdk-go to v0.7.0 * Update v2 apis Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com> * Use empty XP_VERSION to get latest Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com> --------- Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bob Haddleton <bob.haddleton@nokia.com>
1 parent 4b78df2 commit 589dd7d

4 files changed

Lines changed: 135 additions & 151 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ on:
1414

1515
env:
1616
# Common versions
17-
GO_VERSION: '1.25.9'
17+
GO_VERSION: '1.25.10'
1818
GOLANGCI_VERSION: 'v2.8'
1919
DOCKER_BUILDX_VERSION: 'v0.23.0'
2020

2121
# These environment variables are important to the Crossplane CLI install.sh
2222
# script. They determine what version it installs.
23-
XP_CHANNEL: master # TODO(negz): Pin to stable once v1.14 is released.
24-
XP_VERSION: current # TODO(negz): Pin to a version once v1.14 is released.
23+
XP_CHANNEL: stable # TODO(negz): Pin to stable once v1.14 is released.
24+
XP_VERSION: '' # TODO(negz): Pin to a version once v1.14 is released.
2525

2626
# This CI job will automatically push new builds to xpkg.upbound.io if the
2727
# XPKG_ACCESS_ID and XPKG_TOKEN secrets are set in the GitHub respository (or

fn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/crossplane/function-sdk-go/resource"
1414
"github.com/crossplane/function-sdk-go/response"
1515

16-
xpv1 "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
16+
xpv2 "github.com/crossplane/crossplane/apis/v2/core/v2"
1717

1818
"github.com/crossplane/function-auto-ready/healthchecks"
1919
)
@@ -112,7 +112,7 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1.RunFunctionRequest)
112112
log.Debug("Found desired resource with unknown readiness")
113113
// If this observed resource has a status condition with type: Ready,
114114
// status: True, we set its readiness to true.
115-
c := or.Resource.GetCondition(xpv1.TypeReady)
115+
c := or.Resource.GetCondition(xpv2.TypeReady)
116116
if c.Status == corev1.ConditionTrue {
117117
log.Debug("Automatically determined that composed resource is ready")
118118
dr.Ready = resource.ReadyTrue

go.mod

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/crossplane/function-auto-ready
22

3-
go 1.25.9
3+
go 1.25.10
44

55
require (
66
github.com/alecthomas/kong v1.15.0
7-
github.com/crossplane/crossplane-runtime/v2 v2.2.1
8-
github.com/crossplane/function-sdk-go v0.6.2
7+
github.com/crossplane/crossplane/apis/v2 v2.3.0
8+
github.com/crossplane/function-sdk-go v0.7.0
99
github.com/google/go-cmp v0.7.0
1010
google.golang.org/protobuf v1.36.11
1111
k8s.io/api v0.35.4
@@ -16,6 +16,7 @@ require (
1616
dario.cat/mergo v1.0.2 // indirect
1717
github.com/beorn7/perks v1.0.1 // indirect
1818
github.com/cespare/xxhash/v2 v2.3.0 // indirect
19+
github.com/crossplane/crossplane-runtime/v2 v2.3.0 // indirect
1920
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2021
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
2122
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
@@ -24,20 +25,20 @@ require (
2425
github.com/go-json-experiment/json v0.0.0-20240815175050-ebd3a8989ca1 // indirect
2526
github.com/go-logr/logr v1.4.3 // indirect
2627
github.com/go-logr/zapr v1.3.0 // indirect
27-
github.com/go-openapi/jsonpointer v0.22.4 // indirect
28-
github.com/go-openapi/jsonreference v0.21.4 // indirect
29-
github.com/go-openapi/swag v0.25.4 // indirect
30-
github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
31-
github.com/go-openapi/swag/conv v0.25.4 // indirect
32-
github.com/go-openapi/swag/fileutils v0.25.4 // indirect
33-
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
34-
github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
35-
github.com/go-openapi/swag/loading v0.25.4 // indirect
36-
github.com/go-openapi/swag/mangling v0.25.4 // indirect
37-
github.com/go-openapi/swag/netutils v0.25.4 // indirect
38-
github.com/go-openapi/swag/stringutils v0.25.4 // indirect
39-
github.com/go-openapi/swag/typeutils v0.25.4 // indirect
40-
github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
28+
github.com/go-openapi/jsonpointer v0.22.5 // indirect
29+
github.com/go-openapi/jsonreference v0.21.5 // indirect
30+
github.com/go-openapi/swag v0.25.5 // indirect
31+
github.com/go-openapi/swag/cmdutils v0.25.5 // indirect
32+
github.com/go-openapi/swag/conv v0.25.5 // indirect
33+
github.com/go-openapi/swag/fileutils v0.25.5 // indirect
34+
github.com/go-openapi/swag/jsonname v0.25.5 // indirect
35+
github.com/go-openapi/swag/jsonutils v0.25.5 // indirect
36+
github.com/go-openapi/swag/loading v0.25.5 // indirect
37+
github.com/go-openapi/swag/mangling v0.25.5 // indirect
38+
github.com/go-openapi/swag/netutils v0.25.5 // indirect
39+
github.com/go-openapi/swag/stringutils v0.25.5 // indirect
40+
github.com/go-openapi/swag/typeutils v0.25.5 // indirect
41+
github.com/go-openapi/swag/yamlutils v0.25.5 // indirect
4142
github.com/gobuffalo/flect v1.0.3 // indirect
4243
github.com/google/gnostic-models v0.7.1 // indirect
4344
github.com/google/uuid v1.6.0 // indirect
@@ -46,7 +47,7 @@ require (
4647
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4748
github.com/json-iterator/go v1.1.12 // indirect
4849
github.com/mattn/go-colorable v0.1.14 // indirect
49-
github.com/mattn/go-isatty v0.0.20 // indirect
50+
github.com/mattn/go-isatty v0.0.22 // indirect
5051
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5152
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
5253
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
@@ -60,30 +61,30 @@ require (
6061
github.com/spf13/pflag v1.0.10 // indirect
6162
github.com/x448/float16 v0.8.4 // indirect
6263
go.uber.org/multierr v1.11.0 // indirect
63-
go.uber.org/zap v1.27.1 // indirect
64+
go.uber.org/zap v1.28.0 // indirect
6465
go.yaml.in/yaml/v2 v2.4.3 // indirect
6566
go.yaml.in/yaml/v3 v3.0.4 // indirect
66-
golang.org/x/mod v0.32.0 // indirect
67-
golang.org/x/net v0.49.0 // indirect
68-
golang.org/x/oauth2 v0.34.0 // indirect
69-
golang.org/x/sync v0.19.0 // indirect
70-
golang.org/x/sys v0.40.0 // indirect
71-
golang.org/x/term v0.39.0 // indirect
72-
golang.org/x/text v0.33.0 // indirect
73-
golang.org/x/time v0.14.0 // indirect
74-
golang.org/x/tools v0.41.0 // indirect
75-
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20 // indirect
76-
google.golang.org/grpc v1.79.3 // indirect
67+
golang.org/x/mod v0.35.0 // indirect
68+
golang.org/x/net v0.53.0 // indirect
69+
golang.org/x/oauth2 v0.36.0 // indirect
70+
golang.org/x/sync v0.20.0 // indirect
71+
golang.org/x/sys v0.43.0 // indirect
72+
golang.org/x/term v0.42.0 // indirect
73+
golang.org/x/text v0.36.0 // indirect
74+
golang.org/x/time v0.15.0 // indirect
75+
golang.org/x/tools v0.44.0 // indirect
76+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260427160629-7cedc36a6bc4 // indirect
77+
google.golang.org/grpc v1.81.1 // indirect
7778
gopkg.in/inf.v0 v0.9.1 // indirect
7879
gopkg.in/yaml.v2 v2.4.0 // indirect
7980
gopkg.in/yaml.v3 v3.0.1 // indirect
8081
k8s.io/apiextensions-apiserver v0.35.0 // indirect
81-
k8s.io/client-go v0.35.0 // indirect
82+
k8s.io/client-go v0.35.1 // indirect
8283
k8s.io/code-generator v0.35.0 // indirect
8384
k8s.io/gengo/v2 v2.0.0-20251215205346-5ee0d033ba5b // indirect
8485
k8s.io/klog/v2 v2.130.1 // indirect
8586
k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4 // indirect
86-
k8s.io/utils v0.0.0-20260108192941-914a6e750570 // indirect
87+
k8s.io/utils v0.0.0-20260319190234-28399d86e0b5 // indirect
8788
sigs.k8s.io/controller-runtime v0.23.1 // indirect
8889
sigs.k8s.io/controller-tools v0.20.0 // indirect
8990
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect

0 commit comments

Comments
 (0)