From 20a19b007eb4c769a17858ddd1d5851f41de22a8 Mon Sep 17 00:00:00 2001 From: Cavaughn Browne Date: Wed, 8 May 2024 13:22:04 -0500 Subject: [PATCH] fix linting errors --- pkg/api/v1alpha1/cluster_types_test.go | 2 +- pkg/api/v1alpha1/snowdatacenterconfig_webhook.go | 2 +- pkg/api/v1alpha1/snowmachineconfig_webhook.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/v1alpha1/cluster_types_test.go b/pkg/api/v1alpha1/cluster_types_test.go index 72bcfa2c5ad0..fc8a8836f6a1 100644 --- a/pkg/api/v1alpha1/cluster_types_test.go +++ b/pkg/api/v1alpha1/cluster_types_test.go @@ -2983,7 +2983,7 @@ func TestCluster_HasFailure(t *testing.T) { }, } for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { + t.Run(tt.name, func(_ *testing.T) { g.Expect(tt.cluster.HasFailure()).To(Equal(tt.want)) }) } diff --git a/pkg/api/v1alpha1/snowdatacenterconfig_webhook.go b/pkg/api/v1alpha1/snowdatacenterconfig_webhook.go index c149b188b3ed..6f63455c0a4d 100644 --- a/pkg/api/v1alpha1/snowdatacenterconfig_webhook.go +++ b/pkg/api/v1alpha1/snowdatacenterconfig_webhook.go @@ -44,7 +44,7 @@ func (r *SnowDatacenterConfig) ValidateCreate() (admission.Warnings, error) { } // ValidateUpdate implements webhook.Validator so a webhook will be registered for the type. -func (r *SnowDatacenterConfig) ValidateUpdate(old runtime.Object) (admission.Warnings, error) { +func (r *SnowDatacenterConfig) ValidateUpdate(_ runtime.Object) (admission.Warnings, error) { snowdatacenterconfiglog.Info("validate update", "name", r.Name) return nil, r.Validate() diff --git a/pkg/api/v1alpha1/snowmachineconfig_webhook.go b/pkg/api/v1alpha1/snowmachineconfig_webhook.go index eec17576c2e2..b488ce455c23 100644 --- a/pkg/api/v1alpha1/snowmachineconfig_webhook.go +++ b/pkg/api/v1alpha1/snowmachineconfig_webhook.go @@ -58,7 +58,7 @@ func (r *SnowMachineConfig) ValidateCreate() (admission.Warnings, error) { } // ValidateUpdate implements webhook.Validator so a webhook will be registered for the type. -func (r *SnowMachineConfig) ValidateUpdate(old runtime.Object) (admission.Warnings, error) { +func (r *SnowMachineConfig) ValidateUpdate(_ runtime.Object) (admission.Warnings, error) { snowmachineconfiglog.Info("validate update", "name", r.Name) if err := r.ValidateHasSSHKeyName(); err != nil {