Warn about unknown kinds in disableKinds

See #11256
This commit is contained in:
Bjørn Erik Pedersen
2023-07-28 12:04:03 +02:00
parent b3cb6788b2
commit 1c97095ac0
4 changed files with 52 additions and 14 deletions

View File

@@ -93,15 +93,3 @@ func GetKindAny(s string) string {
}
return kindMapTemporary[strings.ToLower(s)]
}
// IsDeprecated returns whether the given kind is deprecated.
func IsDeprecated(s string) bool {
s = strings.ToLower(s)
switch s {
case "taxonomyterm":
return true
default:
return false
}
}