Merge pull request #721 from Liujingfang1/filename

support different filenames for kustomization file
This commit is contained in:
Jeff Regan
2019-01-25 14:34:06 -08:00
committed by GitHub
10 changed files with 50 additions and 38 deletions

View File

@@ -158,7 +158,7 @@ func (fs *fakeFs) ReadFile(name string) ([]byte, error) {
}
func (fs *fakeFs) ReadTestKustomization() ([]byte, error) {
return fs.ReadFile(constants.KustomizationFileName)
return fs.ReadFile(constants.KustomizationFileNames[0])
}
// WriteFile always succeeds and does nothing.
@@ -176,7 +176,7 @@ func (fs *fakeFs) WriteTestKustomization() {
// WriteTestKustomizationWith writes a standard test file.
func (fs *fakeFs) WriteTestKustomizationWith(bytes []byte) {
fs.WriteFile(constants.KustomizationFileName, bytes)
fs.WriteFile(constants.KustomizationFileNames[0], bytes)
}
func (fs *fakeFs) pathMatch(path, pattern string) bool {