Dump stdin to a temporary file in kubectl replace --force

This commit is contained in:
Marcin Wielgus
2015-07-15 14:10:47 +02:00
parent 8f3c3108b8
commit 866bd7b4e5
4 changed files with 67 additions and 1 deletions

View File

@@ -164,7 +164,7 @@ func (b *Builder) Path(paths ...string) *Builder {
continue
}
visitors, err := ExpandPathsToFileVisitors(b.mapper, p, false, []string{".json", ".yaml", ".yml"}, b.continueOnError, b.schema)
visitors, err := ExpandPathsToFileVisitors(b.mapper, p, false, []string{".json", ".stdin", ".yaml", ".yml"}, b.continueOnError, b.schema)
if err != nil {
b.errs = append(b.errs, fmt.Errorf("error reading %q: %v", p, err))
}