mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 09:02:53 +00:00
Add validator interface
This commit is contained in:
@@ -24,3 +24,10 @@ type Decoder interface {
|
||||
// Decode yields the next object from the input, else io.EOF
|
||||
Decode(interface{}) error
|
||||
}
|
||||
|
||||
// Validator provides functions to validate annotations and labels
|
||||
type Validator interface {
|
||||
MakeAnnotationValidator() func(map[string]string) error
|
||||
MakeLabelValidator() func(map[string]string) error
|
||||
ValidateNamespace(string) []string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user