Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeIdentifier ¶
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 ¶
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 ParseDeploymentNameFromPodName ¶
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.