Merge pull request #2168 from pgpx/feature-kustomizationpatch

Implement "kind: Component" to support composition
This commit is contained in:
Kubernetes Prow Robot
2020-06-03 10:32:11 -07:00
committed by GitHub
4 changed files with 764 additions and 23 deletions

View File

@@ -52,6 +52,16 @@ kind: Kustomization
`+content))
}
func (th Harness) WriteC(path string, content string) {
th.fSys.WriteFile(
filepath.Join(
path,
konfig.DefaultKustomizationFileName()), []byte(`
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
`+content))
}
func (th Harness) WriteF(path string, content string) {
th.fSys.WriteFile(path, []byte(content))
}