Files
capsule/api/v1beta1/deny_wildcard.go
2023-10-16 21:29:23 +02:00

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
}