mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
* fix: performance recession when propagating namespace to helm * fix: handle passing namespace downstream more elegant * Revert "fix: handle passing namespace downstream more elegant" This reverts commit976a7cf2aa. * Revert "fix: performance recession when propagating namespace to helm" This reverts commitc7612d1dba. * fix: use annotation to identify helm chart generated resources * fix: deduplicate code * fix: missing import in NamespaceTransformer.go * ci: allow manual trigger of pipeline in fork * Revert "ci: allow manual trigger of pipeline in fork" This reverts commit8948788fe2. * fix: test cases * chore: fix code comment was on wrong line * chore: fix code comment was on wrong line pt2
53 lines
1.8 KiB
Go
53 lines
1.8 KiB
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package konfig
|
|
|
|
// 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
|
|
XdgConfigHomeEnv = "XDG_CONFIG_HOME"
|
|
|
|
// Use this when XdgConfigHomeEnv not defined.
|
|
XdgConfigHomeEnvDefault = ".config"
|
|
|
|
// A program name, for use in help, finding the XDG_CONFIG_DIR, etc.
|
|
ProgramName = "kustomize"
|
|
|
|
// ConfigAnnoDomain is internal configuration-related annotation namespace.
|
|
// See https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/api-conventions/functions-spec.md.
|
|
ConfigAnnoDomain = "internal.config.kubernetes.io"
|
|
|
|
// If a resource has this annotation, kustomize will drop it.
|
|
IgnoredByKustomizeAnnotation = "config.kubernetes.io/local-config"
|
|
|
|
// Label key that indicates the resources are built from Kustomize
|
|
ManagedbyLabelKey = "app.kubernetes.io/managed-by"
|
|
|
|
// An environment variable to turn on/off adding the ManagedByLabelKey
|
|
EnableManagedbyLabelEnv = "KUSTOMIZE_ENABLE_MANAGEDBY_LABEL"
|
|
|
|
// Label key that indicates the resources are validated by a validator
|
|
ValidatedByLabelKey = "validated-by"
|
|
|
|
// Annotation key for marking helm-generated resources to skip namespace transformation
|
|
HelmGeneratedAnnotation = ConfigAnnoDomain + "/helm-generated"
|
|
)
|