feat: add deny-wildcard annotation

This commit is contained in:
alegrey91
2021-09-21 19:14:49 +02:00
committed by Dario Tranchitella
parent 0039c91c23
commit 196e3c910d
3 changed files with 98 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
// Copyright 2020-2021 Clastix Labs
// SPDX-License-Identifier: Apache-2.0
package v1beta1
const (
denyWildcard = "capsule.clastix.io/deny-wildcard"
)
func (t *Tenant) IsWildcardDenied() bool {
if v, ok := t.Annotations[denyWildcard]; ok && v == "true" {
return true
}
return false
}