From 415a9615ea63d4f2fe2d80572ea9a1490d8336f0 Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Tue, 16 Apr 2024 12:06:55 -0700 Subject: [PATCH] Use apigroup as variable --- pkg/apis/v1beta1/labels.go | 5 +---- pkg/apis/v1beta1/register.go | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/apis/v1beta1/labels.go b/pkg/apis/v1beta1/labels.go index cadf8dd902c6..066c008b6ed9 100644 --- a/pkg/apis/v1beta1/labels.go +++ b/pkg/apis/v1beta1/labels.go @@ -49,11 +49,8 @@ func init() { ) } -const ( - TerminationFinalizer = Group + "/termination" -) - var ( + TerminationFinalizer = Group + "/termination" AWSToKubeArchitectures = map[string]string{ "x86_64": v1beta1.ArchitectureAmd64, v1beta1.ArchitectureArm64: v1beta1.ArchitectureArm64, diff --git a/pkg/apis/v1beta1/register.go b/pkg/apis/v1beta1/register.go index b46161bbdc6c..65c57e81addf 100644 --- a/pkg/apis/v1beta1/register.go +++ b/pkg/apis/v1beta1/register.go @@ -20,9 +20,8 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" ) -const Group = "karpenter.k8s.aws" - var ( + Group = "karpenter.k8s.aws" SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: "v1beta1"} SchemeBuilder = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion,