utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownwardAPIAnnotation

func DownwardAPIAnnotation(annotation_prefix, name string) string

DownwardAPIAnnotation makes a downward api annotation name from the given name.

func DownwardAPILabel

func DownwardAPILabel(label_prefix, name string) string

DownwardAPILabel makes a downward api label name from the given name.

func PrepareDownwardAPILabels

func PrepareDownwardAPILabels(
	obj interface{},
	downwardAPILabels map[string]string,
	prefix string,
) (map[string]string, error)

func SetTopologyLabels added in v0.3.0

func SetTopologyLabels(log logr.Logger, om *v1.ObjectMeta, labels map[commonv1alpha1.TopologyLabel]string)

Types

type ID

type ID struct {
	Type string
	ID   string
}

func MakeID

func MakeID(typ, id string) ID

func ParseID

func ParseID(s string) (ID, error)

func (*ID) String

func (i *ID) String() string

func (*ID) UnmarshalText

func (i *ID) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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