mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
support different filenames for kustomization file
This commit is contained in:
@@ -17,15 +17,12 @@ limitations under the License.
|
||||
// Package constants holds global constants for the kustomize tool.
|
||||
package constants
|
||||
|
||||
// KustomizationFileSuffix is expected suffix for KustomizationFileName.
|
||||
const KustomizationFileSuffix = ".yaml"
|
||||
|
||||
// SecondaryKustomizationFileSuffix is the second expected suffix when KustomizationFileSuffix is not found
|
||||
const SecondaryKustomizationFileSuffix = ".yml"
|
||||
|
||||
// KustomizationFileName is the Well-Known File Name for a kustomize configuration file.
|
||||
const KustomizationFileName = "kustomization" + KustomizationFileSuffix
|
||||
|
||||
// SecondaryKustomizationFileName is the secondary File Name for a kustomize configuration file when
|
||||
// KustomizationFileName is not found
|
||||
const SecondaryKustomizationFileName = "kustomization" + SecondaryKustomizationFileSuffix
|
||||
// KustomizationFileNames is a list of filenames that can be recognized and consumbed
|
||||
// by Kustomize.
|
||||
// In each directory, Kustomize searches for file with the name in this list.
|
||||
// Only one match is allowed.
|
||||
var KustomizationFileNames = [3]string{
|
||||
"kustomization.yaml",
|
||||
"kustomization.yml",
|
||||
"Kustomization",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user