Skip to content

Commit 12fb240

Browse files
committed
fixup! refactor: Use clusterv1 import alias to satisfy linter
1 parent ead9575 commit 12fb240

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/e2e/clusterautoscaler_helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
corev1 "k8s.io/api/core/v1"
1616
"k8s.io/apimachinery/pkg/api/errors"
1717
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
18-
capiv1 "sigs.k8s.io/cluster-api/api/v1beta1"
18+
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
1919
"sigs.k8s.io/cluster-api/test/framework"
2020
"sigs.k8s.io/controller-runtime/pkg/client"
2121

@@ -26,7 +26,7 @@ const clusterAutoscalerPrefix = "cluster-autoscaler-"
2626

2727
type WaitForClusterAutoscalerToBeReadyInWorkloadClusterInput struct {
2828
ClusterAutoscaler *v1alpha1.ClusterAutoscaler
29-
WorkloadCluster *capiv1.Cluster
29+
WorkloadCluster *clusterv1.Cluster
3030
ClusterProxy framework.ClusterProxy
3131
DeploymentIntervals []interface{}
3232
DaemonSetIntervals []interface{}

test/e2e/self_hosted_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
. "github.com/onsi/ginkgo/v2"
1313
. "github.com/onsi/gomega"
1414
"k8s.io/utils/ptr"
15-
capiv1 "sigs.k8s.io/cluster-api/api/v1beta1"
15+
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
1616
capiframework "sigs.k8s.io/cluster-api/test/framework"
1717

1818
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/v1alpha1"
@@ -55,7 +55,7 @@ var _ = Describe("Self-hosted", Serial, func() {
5555
SkipCleanup: skipCleanup,
5656
Flavor: flavour,
5757
InfrastructureProvider: ptr.To(lowercaseProvider),
58-
PostClusterMoved: func(proxy capiframework.ClusterProxy, cluster *capiv1.Cluster) {
58+
PostClusterMoved: func(proxy capiframework.ClusterProxy, cluster *clusterv1.Cluster) {
5959
By(
6060
"Waiting for all requested addons to be ready in workload cluster",
6161
)

0 commit comments

Comments
 (0)