kube

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeIdentifier

func NormalizeIdentifier(name string) string

NormalizeIdentifier returns the 'name' "normalized" for the standard identifier in Kubernetes. All non-allowed symbols are replaced with dashes. See https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names

func NormalizeLabelValue

func NormalizeLabelValue(name string) string

NormalizeLabelValue returns the 'name' "normalized" for the label value. All non-allowed symbols are replaced with dashes. See https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names

func ObjectKey

func ObjectKey(namespace, name string) client.ObjectKey

func ObjectKeyFromObject

func ObjectKeyFromObject(obj metav1.Object) client.ObjectKey

func ParseDeploymentNameFromPodName

func ParseDeploymentNameFromPodName(podName string) (string, error)

ParseDeploymentNameFromPodName returns the name of Deployment by Pod Name. The Pods for Deployments have two hashes parts as the first one is generated for the ReplicaSet resource created and the second - for the Pod itself. Example: - Deployment: "prometheus-adapter" - ReplicaSet: "prometheus-adapter-65c6cb864f" - Pod: "prometheus-adapter-797f946f88-97f2q"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL