Skip to content

Commit ca841e9

Browse files
authored
Merge pull request #180 from gianlucam76/clusterapi
(chore) upgrade CLusterAPI to core v1beta2
2 parents 2ff270a + 1028e5f commit ca841e9

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
_ "k8s.io/client-go/plugin/pkg/client/auth"
3636
cliflag "k8s.io/component-base/cli/flag"
3737
"k8s.io/klog/v2"
38-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
38+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
3939
ctrl "sigs.k8s.io/controller-runtime"
4040
"sigs.k8s.io/controller-runtime/pkg/cache"
4141
"sigs.k8s.io/controller-runtime/pkg/client"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/onsi/ginkgo/v2 v2.25.3
1010
github.com/onsi/gomega v1.38.2
1111
github.com/pkg/errors v0.9.1
12-
github.com/projectsveltos/libsveltos v1.1.0
12+
github.com/projectsveltos/libsveltos v1.1.1-0.20250913103127-453f2050df67
1313
github.com/spf13/pflag v1.0.10
1414
golang.org/x/text v0.29.0
1515
k8s.io/api v0.34.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
111111
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
112112
github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=
113113
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
114-
github.com/projectsveltos/libsveltos v1.1.0 h1:QcBq3emJgUskCtwaX3mNFBg91mrga04zzvWpqTDU10w=
115-
github.com/projectsveltos/libsveltos v1.1.0/go.mod h1:pjM/s2wIcArFEk8uPRroCPNnV4cL/tlNozwb5ehoxhE=
114+
github.com/projectsveltos/libsveltos v1.1.1-0.20250913103127-453f2050df67 h1:NCxWU1p+W0DnXFfgS2FlMhopAOdl83LIvZLmIcN3Vpo=
115+
github.com/projectsveltos/libsveltos v1.1.1-0.20250913103127-453f2050df67/go.mod h1:pjM/s2wIcArFEk8uPRroCPNnV4cL/tlNozwb5ehoxhE=
116116
github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=
117117
github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0=
118118
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=

internal/controller/cluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
"k8s.io/apimachinery/pkg/runtime"
2323
"k8s.io/client-go/rest"
24-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
24+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
2525
ctrl "sigs.k8s.io/controller-runtime"
2626
"sigs.k8s.io/controller-runtime/pkg/client"
2727
"sigs.k8s.io/controller-runtime/pkg/reconcile"

internal/controller/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"k8s.io/client-go/kubernetes"
3737
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
3838
"k8s.io/client-go/rest"
39-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
39+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
4040
ctrl "sigs.k8s.io/controller-runtime"
4141
"sigs.k8s.io/controller-runtime/pkg/client"
4242

internal/test/helpers/external/cluster-api-const.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ package external
1515

1616
const (
1717
clusterAPIGroup = "cluster.x-k8s.io"
18-
clusterAPITestVersion = "v1beta1"
18+
clusterAPITestVersion = "v1beta2"
1919
)

test/fv/agent_in_mgmt_cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
appsv1 "k8s.io/api/apps/v1"
2828
corev1 "k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/types"
30-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
30+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
3131

3232
"github.com/projectsveltos/libsveltos/lib/k8s_utils"
3333
"github.com/projectsveltos/libsveltos/lib/sharding"

test/fv/fv_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
3434
"k8s.io/client-go/util/retry"
3535
"k8s.io/klog/v2"
36-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
36+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
3737
"sigs.k8s.io/cluster-api/util"
3838
ctrl "sigs.k8s.io/controller-runtime"
3939
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -145,7 +145,7 @@ var _ = BeforeSuite(func() {
145145
currentLabels[key] = value
146146
currentCluster.Labels = currentLabels
147147
paused := false
148-
currentCluster.Spec.Paused = paused
148+
currentCluster.Spec.Paused = &paused
149149

150150
annotations := currentCluster.Annotations
151151
if annotations == nil {

test/fv/shard_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
appsv1 "k8s.io/api/apps/v1"
2828
apierrors "k8s.io/apimachinery/pkg/api/errors"
2929
"k8s.io/apimachinery/pkg/types"
30-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
30+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
3131

3232
"github.com/projectsveltos/libsveltos/lib/k8s_utils"
3333
"github.com/projectsveltos/libsveltos/lib/sharding"

0 commit comments

Comments
 (0)