Additional tests around reusing the same bases and components

This commit is contained in:
Paul Martin
2020-05-28 19:50:00 +01:00
parent ab9d4c7e7b
commit 34a442bbef
3 changed files with 8 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ func (k *Kustomization) EnforceFields() []string {
requiredVersion = ComponentVersion
}
if k.APIVersion != "" && k.APIVersion != requiredVersion {
errs = append(errs, "apiVersion should be "+requiredVersion)
errs = append(errs, "apiVersion for "+k.Kind+" should be "+requiredVersion)
}
return errs
}