Skip to content

Commit 59d4654

Browse files
abdullah599guettli
andauthored
🌱 Remove deprecated cluster-api/errors package usage (#1979)
Co-authored-by: Thomas Güttler <thomas.guettler@syself.com>
1 parent 0d4bf03 commit 59d4654

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

api/v1beta1/hcloudmachine_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"github.com/hetznercloud/hcloud-go/v2/hcloud"
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
23-
capierrors "sigs.k8s.io/cluster-api/errors" //nolint:staticcheck // we will handle that, when we update to capi v1.11
2423
)
2524

2625
const (
@@ -135,7 +134,7 @@ type HCloudMachineStatus struct {
135134
// Deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.
136135
//
137136
// +optional
138-
FailureReason *capierrors.MachineStatusError `json:"failureReason,omitempty"`
137+
FailureReason *string `json:"failureReason,omitempty"`
139138

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

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.

0 commit comments

Comments
 (0)