mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-21 06:21:43 +00:00
42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package pgmconfig
|
|
|
|
// RecognizedKustomizationFileNames is a list of file names
|
|
// that kustomize recognizes.
|
|
// To avoid ambiguity, a kustomization directory may not
|
|
// contain more than one match to this list.
|
|
func RecognizedKustomizationFileNames() []string {
|
|
return []string{
|
|
"kustomization.yaml",
|
|
"kustomization.yml",
|
|
"Kustomization",
|
|
}
|
|
}
|
|
|
|
func DefaultKustomizationFileName() string {
|
|
return RecognizedKustomizationFileNames()[0]
|
|
}
|
|
|
|
const (
|
|
// An environment variable to consult for kustomization
|
|
// configuration data. See:
|
|
// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
|
XdgConfigHome = "XDG_CONFIG_HOME"
|
|
|
|
// Use this when XdgConfigHome not defined.
|
|
DefaultConfigSubdir = ".config"
|
|
|
|
// Program name, for help, finding the XDG_CONFIG_DIR, etc.
|
|
ProgramName = "kustomize"
|
|
|
|
// TODO: delete this. it's a copy of a const
|
|
// defined elsewhere but used by pluginator.
|
|
DomainName = "sigs.k8s.io"
|
|
|
|
// TODO: delete this. its a copy of a const
|
|
// defined elsewhere but used by pluginator.
|
|
PluginRoot = "plugin"
|
|
)
|