Add validator to kustomization

This commit is contained in:
Donny Xia
2020-06-16 13:59:44 -07:00
parent 8576acf1aa
commit a0c1979798
5 changed files with 72 additions and 0 deletions

View File

@@ -140,6 +140,11 @@ func (p *ExecPlugin) Transform(rm resmap.ResMap) error {
return p.updateResMapValues(output, rm)
}
func (p *ExecPlugin) Validate(rm resmap.ResMap) error {
// Validate works exactly same with Transformer
return p.Transform(rm)
}
// invokePlugin writes plugin config to a temp file, then
// passes the full temp file path as the first arg to a process
// running the plugin binary. Process output is returned.