Documentation
¶
Index ¶
- Constants
- func GetAppLabelSelector(name string) metav1.LabelSelector
- func GetGroupLabel(serviceName string) string
- func GetLabelSelector(serviceLabels map[string]string) metav1.LabelSelector
- func GetLabels(obj metav1.Object, groupLabel string, custom map[string]string) map[string]string
- func GetOwnerNameLabelSelector(groupLabel string) string
- func GetOwnerNameSpaceLabelSelector(groupLabel string) string
- func GetOwnerUIDLabelSelector(groupLabel string) string
- func GetSingleLabelSelector(key string, value string) metav1.LabelSelector
Constants ¶
View Source
const ( K8sAppName = "app.kubernetes.io/name" K8sAppInstance = "app.kubernetes.io/instance" K8sAppVersion = "app.kubernetes.io/version" K8sAppComponent = "app.kubernetes.io/component" K8sAppPartOf = "app.kubernetes.io/part-of" K8sAppManagedBy = "app.kubernetes.io/managed-by" K8sHostname = "kubernetes.io/hostname" )
k8s recommended labels from https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ .
Variables ¶
This section is empty.
Functions ¶
func GetAppLabelSelector ¶ added in v0.6.0
func GetAppLabelSelector( name string, ) metav1.LabelSelector
GetAppLabelSelector - create a simple label selector for the default AppSelector "service" label
func GetLabelSelector ¶ added in v0.6.0
func GetLabelSelector( serviceLabels map[string]string, ) metav1.LabelSelector
GetLabelSelector - utility function that returns a metav1.LabelSelector based on the map[string]string that represents the k/v list passed to the StatefulSet or Deployment as labelSelector
func GetOwnerNameLabelSelector ¶
GetOwnerNameLabelSelector -
func GetOwnerNameSpaceLabelSelector ¶
GetOwnerNameSpaceLabelSelector -
func GetOwnerUIDLabelSelector ¶
GetOwnerUIDLabelSelector -
func GetSingleLabelSelector ¶ added in v0.6.0
func GetSingleLabelSelector( key string, value string, ) metav1.LabelSelector
GetSingleLabelSelector - create a simple label selector for a single key/value label
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.