Skip to content

Commit

Permalink
chore: Update apigroup from const to var (#6046)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Apr 16, 2024
1 parent 8e494f3 commit b692129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions pkg/apis/v1beta1/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions pkg/apis/v1beta1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b692129

Please sign in to comment.