Documentation
¶
Index ¶
- Constants
- Variables
- func ExtractApplicationLabels(meta *metav1.ObjectMeta) map[string]string
- func GetComponentName(meta *metav1.ObjectMeta) string
- func GetComponentVersion(meta *metav1.ObjectMeta) string
- func IsApplicationComponent(meta *metav1.ObjectMeta) bool
- func NormalizeVersionName(version string) string
Constants ¶
View Source
const ( AppLabel = "app" VersionLabel = "version" ApplicationNameLabel = "app.kubernetes.io/name" ApplicationVersionLabel = "app.kubernetes.io/version" )
Variables ¶
View Source
var ApplicationLabels = [...]string{ ApplicationNameLabel, ApplicationVersionLabel, AppLabel, }
View Source
var TrimChars = [...]string{".", "_", "-"}
Functions ¶
func ExtractApplicationLabels ¶
func ExtractApplicationLabels(meta *metav1.ObjectMeta) map[string]string
func GetComponentName ¶
func GetComponentName(meta *metav1.ObjectMeta) string
func GetComponentVersion ¶
func GetComponentVersion(meta *metav1.ObjectMeta) string
func IsApplicationComponent ¶
func IsApplicationComponent(meta *metav1.ObjectMeta) bool
func NormalizeVersionName ¶
normalize version names strip [_.-]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.