Skip to content

Commit 471cf31

Browse files
authored
Merge pull request #404 from gianlucam76/prep
(chore) postpone upgrade to ClusterAPI core v1beta2
2 parents 05cb658 + 336c51b commit 471cf31

33 files changed

+88
-90
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: checkout
1717
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1818
- name: Set up Go
19-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
19+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2020
with:
2121
go-version: 1.25.0
2222
- name: Build
@@ -35,7 +35,7 @@ jobs:
3535
- name: checkout
3636
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3737
- name: Set up Go
38-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
38+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3939
with:
4040
go-version: 1.25.0
4141
- name: ut
@@ -48,7 +48,7 @@ jobs:
4848
- name: checkout
4949
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050
- name: Set up Go
51-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
51+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
5252
with:
5353
go-version: 1.25.0
5454
- name: fv
@@ -61,7 +61,7 @@ jobs:
6161
- name: checkout
6262
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6363
- name: Set up Go
64-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
64+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
6565
with:
6666
go-version: 1.25.0
6767
- name: fv-sharding
@@ -74,7 +74,7 @@ jobs:
7474
- name: checkout
7575
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7676
- name: Set up Go
77-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
77+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
7878
with:
7979
go-version: 1.25.0
8080
- name: fv-agentless
@@ -87,7 +87,7 @@ jobs:
8787
- name: checkout
8888
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8989
- name: Set up Go
90-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
90+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
9191
with:
9292
go-version: 1.25.0
9393
- name: fv-pullmode

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ARCH ?= $(shell go env GOARCH)
4545
OS ?= $(shell uname -s | tr A-Z a-z)
4646
K8S_LATEST_VER ?= $(shell curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
4747
export CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
48-
TAG ?= main
48+
TAG ?= v1.1.0
4949

5050
## Tool Binaries
5151
CONTROLLER_GEN := $(TOOLS_BIN_DIR)/controller-gen
@@ -169,7 +169,7 @@ endif
169169
# K8S_VERSION for the Kind cluster can be set as environment variable. If not defined,
170170
# this default value is used
171171
ifndef K8S_VERSION
172-
K8S_VERSION := v1.33.0
172+
K8S_VERSION := v1.34.0
173173
endif
174174

175175
KIND_CONFIG ?= kind-cluster.yaml

config/default/manager_auth_proxy_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ spec:
1616
- "--shard-key="
1717
- --capi-onboard-annotation=
1818
- "--v=5"
19-
- "--version=main"
19+
- "--version=v1.1.0"
2020
- "--registry="
2121
- "--agent-in-mgmt-cluster=false"

config/default/manager_image_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
spec:
99
containers:
1010
# Change the value of image field below to your controller image URL
11-
- image: docker.io/projectsveltos/classifier:main
11+
- image: docker.io/projectsveltos/classifier:v1.1.0
1212
name: manager

controllers/classifier_controller.go

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

controllers/classifier_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2929
"k8s.io/apimachinery/pkg/types"
3030
"k8s.io/klog/v2/textlogger"
31-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
31+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
3232
ctrl "sigs.k8s.io/controller-runtime"
3333
"sigs.k8s.io/controller-runtime/pkg/client"
3434
"sigs.k8s.io/controller-runtime/pkg/client/fake"

controllers/classifier_deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
"k8s.io/apimachinery/pkg/types"
3838
"k8s.io/client-go/kubernetes"
3939
"k8s.io/client-go/rest"
40-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
40+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
4141
"sigs.k8s.io/cluster-api/util"
4242
"sigs.k8s.io/cluster-api/util/annotations"
4343
"sigs.k8s.io/controller-runtime/pkg/client"

controllers/classifier_deployer_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3434
"k8s.io/apimachinery/pkg/types"
3535
"k8s.io/klog/v2/textlogger"
36-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
36+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
3737
"sigs.k8s.io/controller-runtime/pkg/client"
3838
"sigs.k8s.io/controller-runtime/pkg/client/fake"
3939

@@ -701,9 +701,7 @@ func prepareCluster() *clusterv1.Cluster {
701701

702702
initialized := true
703703
cluster.Status = clusterv1.ClusterStatus{
704-
Initialization: clusterv1.ClusterInitializationStatus{
705-
ControlPlaneInitialized: &initialized,
706-
},
704+
ControlPlaneReady: initialized,
707705
}
708706
Expect(testEnv.Status().Update(context.TODO(), cluster)).To(Succeed())
709707

controllers/classifier_report_collection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2929
"k8s.io/apimachinery/pkg/types"
3030
"k8s.io/klog/v2/textlogger"
31-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
31+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
3232
"sigs.k8s.io/controller-runtime/pkg/client"
3333
"sigs.k8s.io/controller-runtime/pkg/client/fake"
3434

controllers/classifier_transformations.go

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

2323
corev1 "k8s.io/api/core/v1"
2424
"k8s.io/klog/v2/textlogger"
25-
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
25+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck // SA1019: We are unable to update the dependency at this time.
2626
ctrl "sigs.k8s.io/controller-runtime"
2727
"sigs.k8s.io/controller-runtime/pkg/client"
2828
"sigs.k8s.io/controller-runtime/pkg/reconcile"

0 commit comments

Comments
 (0)