Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tenancy: split up tenancy types.go into CE version #18966

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
split up types.go for tenancy resources since namespace is ce and par…
…tition is ent
  • Loading branch information
analogue committed Sep 21, 2023
commit 84d4acaa8e5b0ba660d78a290458cb6db289f47f
8 changes: 0 additions & 8 deletions internal/tenancy/internal/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
13 changes: 13 additions & 0 deletions internal/tenancy/internal/types/types_ce.go
Original file line number Diff line number Diff line change
@@ -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)
}