metadata

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAnnotations added in v0.8.0

func FilterAnnotations(annotations map[string]string, fn func(k, v string) bool) map[string]string

FilterAnnotations filters the provided annotations using fn(k,v). Maps elements are kept if fn returns true.

func GetAnnotations

func GetAnnotations(_ string, annotations ...map[string]string) map[string]string

GetAnnotations returns service annotations.

func GetLabels

func GetLabels(owner OwnerObject, service string, version *version.Version, labels map[string]string) map[string]string

GetLabels returns a Labels for a temporal service.

func GetVersionStringLabels added in v0.8.0

func GetVersionStringLabels(owner OwnerObject, service string, version string, labels map[string]string) map[string]string

GetLabels returns a Labels for a temporal service using string Version.

func HeadlessLabels added in v0.9.0

func HeadlessLabels() map[string]string

HeadlessLabels returns labels to express that a service is headless.

func LabelsSelector

func LabelsSelector(owner OwnerObject, serviceName string) map[string]string

LabelsSelector returns service's default labels.

func Merge

func Merge(maps ...map[string]string) map[string]string

Merge merges the provided maps.

Types

type OwnerObject added in v0.13.0

type OwnerObject interface {
	client.Object
	SelectorLabels() map[string]string
}

Jump to

Keyboard shortcuts

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