Skip to content

Commit ec4406a

Browse files
committed
Update cluster-api to v1.9.x
1 parent a200976 commit ec4406a

33 files changed

+513
-626
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ PULL_POLICY ?= Always
8181
# Set build time variables including version details
8282
LDFLAGS := $(shell ./hack/version.sh)
8383

84-
KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.29.3
84+
KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.31.0
8585

8686
# main controller
8787
CORE_IMAGE_NAME ?= cluster-api-ibmcloud-controller

api/v1beta1/ibmpowervsmachine_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222

2323
capiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
24-
"sigs.k8s.io/cluster-api/errors"
2524
)
2625

2726
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
@@ -142,7 +141,7 @@ type IBMPowerVSMachineStatus struct {
142141
// can be added as events to the Machine object and/or logged in the
143142
// controller's output.
144143
// +optional
145-
FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`
144+
FailureReason *string `json:"failureReason,omitempty"`
146145

147146
// FailureMessage will be set in the event that there is a terminal problem
148147
// reconciling the Machine and will contain a more verbose string suitable

api/v1beta1/zz_generated.conversion.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta2/ibmpowervsmachine_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"k8s.io/apimachinery/pkg/util/intstr"
2323

2424
capiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
25-
"sigs.k8s.io/cluster-api/errors"
2625
)
2726

2827
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
@@ -199,7 +198,7 @@ type IBMPowerVSMachineStatus struct {
199198
// can be added as events to the Machine object and/or logged in the
200199
// controller's output.
201200
// +optional
202-
FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`
201+
FailureReason *string `json:"failureReason,omitempty"`
203202

204203
// FailureMessage will be set in the event that there is a terminal problem
205204
// reconciling the Machine and will contain a more verbose string suitable

api/v1beta2/ibmvpcmachine_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222

2323
capiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
24-
"sigs.k8s.io/cluster-api/errors"
2524
)
2625

2726
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
@@ -161,7 +160,7 @@ type IBMVPCMachineStatus struct {
161160
// reconciling the Machine and will contain a succinct value suitable
162161
// for machine interpretation.
163162
// +optional
164-
FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`
163+
FailureReason *string `json:"failureReason,omitempty"`
165164

166165
// FailureMessage will be set in the event that there is a terminal problem
167166
// reconciling the Machine and will contain a more verbose string suitable

api/v1beta2/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const (
2424

2525
// DefaultAPIServerPort is defuault API server port number.
2626
DefaultAPIServerPort int32 = 6443
27+
28+
// UpdateMachineError indicates an error while trying to update a machine.
29+
UpdateMachineError string = "UpdateError"
2730
)
2831

2932
// PowerVSInstanceState describes the state of an IBM Power VS instance.

api/v1beta2/zz_generated.deepcopy.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloud/scope/machine.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import (
3636
"sigs.k8s.io/controller-runtime/pkg/client"
3737

3838
capiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
39-
capierrors "sigs.k8s.io/cluster-api/errors"
4039
"sigs.k8s.io/cluster-api/util/patch"
4140

4241
infrav1beta2 "sigs.k8s.io/cluster-api-provider-ibmcloud/api/v1beta2"
@@ -1055,7 +1054,7 @@ func (m *MachineScope) SetFailureMessage(message string) {
10551054
}
10561055

10571056
// SetFailureReason will set the Machine's Failure Reason.
1058-
func (m *MachineScope) SetFailureReason(reason capierrors.MachineStatusError) {
1057+
func (m *MachineScope) SetFailureReason(reason string) {
10591058
m.IBMVPCMachine.Status.FailureReason = ptr.To(reason)
10601059
}
10611060

cloud/scope/powervs_machine.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import (
5353
"sigs.k8s.io/controller-runtime/pkg/client"
5454

5555
capiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1"
56-
capierrors "sigs.k8s.io/cluster-api/errors"
5756
"sigs.k8s.io/cluster-api/util"
5857
"sigs.k8s.io/cluster-api/util/patch"
5958

@@ -728,7 +727,7 @@ func (m *PowerVSMachineScope) SetNotReady() {
728727
}
729728

730729
// SetFailureReason will set status FailureReason for the machine.
731-
func (m *PowerVSMachineScope) SetFailureReason(reason capierrors.MachineStatusError) {
730+
func (m *PowerVSMachineScope) SetFailureReason(reason string) {
732731
m.IBMPowerVSMachine.Status.FailureReason = &reason
733732
}
734733

0 commit comments

Comments
 (0)