mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-01 10:20:35 +00:00
Add validator to kustomization
This commit is contained in:
@@ -30,6 +30,12 @@ type Generator interface {
|
||||
Generate() (ResMap, error)
|
||||
}
|
||||
|
||||
// A Validator checkes the ResMap and return an error
|
||||
// if it's not valid.
|
||||
type Validator interface {
|
||||
Validate(m ResMap) error
|
||||
}
|
||||
|
||||
// Something that's configurable accepts an
|
||||
// instance of PluginHelpers and a raw config
|
||||
// object (YAML in []byte form).
|
||||
@@ -73,6 +79,11 @@ type TransformerPlugin interface {
|
||||
Configurable
|
||||
}
|
||||
|
||||
type ValidatorPlugin interface {
|
||||
Validator
|
||||
Configurable
|
||||
}
|
||||
|
||||
// ResMap is an interface describing operations on the
|
||||
// core kustomize data structure, a list of Resources.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user