From d2be7577b9b3d21e559df9743121b5d6609c8e75 Mon Sep 17 00:00:00 2001 From: Semir Patel Date: Fri, 22 Sep 2023 07:33:15 -0500 Subject: [PATCH] tenancy: split up tenancy `types.go` into CE version (#18966) --- internal/tenancy/internal/types/types.go | 8 -------- internal/tenancy/internal/types/types_ce.go | 13 +++++++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 internal/tenancy/internal/types/types_ce.go diff --git a/internal/tenancy/internal/types/types.go b/internal/tenancy/internal/types/types.go index ab6fd8d60f..be0a615153 100644 --- a/internal/tenancy/internal/types/types.go +++ b/internal/tenancy/internal/types/types.go @@ -3,16 +3,8 @@ package types -import ( - "github.com/hashicorp/consul/internal/resource" -) - const ( GroupName = "tenancy" VersionV1Alpha1 = "v1alpha1" CurrentVersion = VersionV1Alpha1 ) - -func Register(r resource.Registry) { - RegisterNamespace(r) -} diff --git a/internal/tenancy/internal/types/types_ce.go b/internal/tenancy/internal/types/types_ce.go new file mode 100644 index 0000000000..1d37357e6a --- /dev/null +++ b/internal/tenancy/internal/types/types_ce.go @@ -0,0 +1,13 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +//go:build !consulent +// +build !consulent + +package types + +import "github.com/hashicorp/consul/internal/resource" + +func Register(r resource.Registry) { + RegisterNamespace(r) +}