Beef up test.

This commit is contained in:
jregan
2020-05-19 18:26:18 -07:00
parent 33d72e9ae6
commit 07b679955e
2 changed files with 25 additions and 3 deletions

View File

@@ -75,6 +75,14 @@ func (kt *KustTarget) Load() error {
return nil
}
// Kustomization returns a copy of the immutable, internal kustomization object.
func (kt *KustTarget) Kustomization() types.Kustomization {
var result types.Kustomization
b, _ := json.Marshal(*kt.kustomization)
json.Unmarshal(b, &result)
return result
}
func loadKustFile(ldr ifc.Loader) ([]byte, error) {
var content []byte
match := 0