Documentation ¶
Overview ¶
Package labels provides utility methods for retrieving Istio-specific labels from Kubernetes resources.
Index ¶
- func CanonicalService(labels map[string]string, workloadName string) (string, string)
- func HasCanonicalServiceName(labels map[string]string) bool
- func HasCanonicalServiceRevision(labels map[string]string) bool
- func WorkloadNameFromWorkloadEntry(name string, annos map[string]string, labels map[string]string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalService ¶
CanonicalService returns the values of the following labels from the supplied map: - service.istio.io/canonical-name - service.istio.io/canonical-revision
If the labels are not in the map, a set of fallbacks are checked. For canonical name, `app.kubernetes.io/name` is checked, then `app`, evenutually falling back to the supplied `workloadName`. For canonical revision, `app.kubernetes.io/version` is checked, followed by `version` and finally defaulting to the literal value of `"latest"`.
func HasCanonicalServiceName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.