From 7562f0cdb6de908a454df9602b7f82ce95f5dbec Mon Sep 17 00:00:00 2001 From: anujmaheshwari1 Date: Wed, 15 Jan 2025 13:32:58 -0800 Subject: [PATCH 1/2] fix: stylecheck lint --- pkg/agent/datamodel/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/datamodel/types.go b/pkg/agent/datamodel/types.go index 8f7a821f37c..d5e0174eef3 100644 --- a/pkg/agent/datamodel/types.go +++ b/pkg/agent/datamodel/types.go @@ -15,7 +15,6 @@ import ( "sync" "github.com/Azure/go-autorest/autorest/to" - "github.com/Masterminds/semver/v3" ) // TypeMeta describes an individual API model object. @@ -625,6 +624,7 @@ type KubernetesAddon struct { // EbpfDataplane controls the eBPF networking dataplane. type EbpfDataplane int32 +//nolint:stylecheck // underscores in constant names are used for clarity in this context const ( // none means don't install an eBPF dataplane. EbpfDataplane_none EbpfDataplane = 0 From 1d4b22bfded8535f49263594ac295ba60302cc05 Mon Sep 17 00:00:00 2001 From: anujmaheshwari1 Date: Wed, 15 Jan 2025 13:37:38 -0800 Subject: [PATCH 2/2] fix: add back semver --- pkg/agent/datamodel/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/agent/datamodel/types.go b/pkg/agent/datamodel/types.go index d5e0174eef3..9a7de601a67 100644 --- a/pkg/agent/datamodel/types.go +++ b/pkg/agent/datamodel/types.go @@ -15,6 +15,7 @@ import ( "sync" "github.com/Azure/go-autorest/autorest/to" + "github.com/Masterminds/semver/v3" ) // TypeMeta describes an individual API model object.