mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-25 16:07:24 +00:00
17 lines
308 B
Go
17 lines
308 B
Go
// Copyright 2020-2023 Project Capsule Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package v1beta1
|
|
|
|
const (
|
|
DenyWildcard = "capsule.clastix.io/deny-wildcard"
|
|
)
|
|
|
|
func (in *Tenant) IsWildcardDenied() bool {
|
|
if v, ok := in.Annotations[DenyWildcard]; ok && v == "true" {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|