mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
17 lines
456 B
Go
17 lines
456 B
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package ext
|
|
|
|
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], krmfile.KrmfileName), nil
|
|
}
|