...

Source file src/sigs.k8s.io/kustomize/api/konfig/general.go

Documentation: sigs.k8s.io/kustomize/api/konfig

     1  // Copyright 2019 The Kubernetes Authors.
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  package konfig
     5  
     6  // RecognizedKustomizationFileNames is a list of file names
     7  // that kustomize recognizes.
     8  // To avoid ambiguity, a kustomization directory may not
     9  // contain more than one match to this list.
    10  func RecognizedKustomizationFileNames() []string {
    11  	return []string{
    12  		"kustomization.yaml",
    13  		"kustomization.yml",
    14  		"Kustomization",
    15  	}
    16  }
    17  
    18  func DefaultKustomizationFileName() string {
    19  	return RecognizedKustomizationFileNames()[0]
    20  }
    21  
    22  const (
    23  	// An environment variable to consult for kustomization
    24  	// configuration data.  See:
    25  	// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
    26  	XdgConfigHomeEnv = "XDG_CONFIG_HOME"
    27  
    28  	// Use this when XdgConfigHomeEnv not defined.
    29  	XdgConfigHomeEnvDefault = ".config"
    30  
    31  	// A program name, for use in help, finding the XDG_CONFIG_DIR, etc.
    32  	ProgramName = "kustomize"
    33  
    34  	// ConfigAnnoDomain is internal configuration-related annotation namespace.
    35  	// See https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/api-conventions/functions-spec.md.
    36  	ConfigAnnoDomain = "internal.config.kubernetes.io"
    37  
    38  	// If a resource has this annotation, kustomize will drop it.
    39  	IgnoredByKustomizeAnnotation = "config.kubernetes.io/local-config"
    40  
    41  	// Label key that indicates the resources are built from Kustomize
    42  	ManagedbyLabelKey = "app.kubernetes.io/managed-by"
    43  
    44  	// An environment variable to turn on/off adding the ManagedByLabelKey
    45  	EnableManagedbyLabelEnv = "KUSTOMIZE_ENABLE_MANAGEDBY_LABEL"
    46  
    47  	// Label key that indicates the resources are validated by a validator
    48  	ValidatedByLabelKey = "validated-by"
    49  )
    50  

View as plain text