write krm metadata to Krmfile instead of Kustomization

This commit is contained in:
Phillip Wittrock
2020-05-28 12:27:14 -07:00
committed by Phillip Wittrock
parent c1a2bf14da
commit 0e5e2648b3
10 changed files with 335 additions and 42 deletions

View File

@@ -3,10 +3,14 @@
package ext
import "path/filepath"
import (
"path/filepath"
"sigs.k8s.io/kustomize/kyaml/krmfile"
)
// GetOpenAPIFile returns the path to the file containing supplementary OpenAPI definitions.
// Maybe be overridden to configure which file to read OpenAPI definitions from.
var GetOpenAPIFile = func(args []string) (string, error) {
return filepath.Join(args[0], "kustomization"), nil
return filepath.Join(args[0], krmfile.KrmfileName), nil
}