labels

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package labels contains helpers for working with labels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerClassLabelSelector

func ControllerClassLabelSelector(class string) metav1.LabelSelector

ControllerClassLabelSelector creates a metav1.LabelSelector which selects objects that has the "styra-controller/class" label with the value `class`.

func ControllerClassLabelSelectorAsSelector

func ControllerClassLabelSelectorAsSelector(class string) (labels.Selector, error)

ControllerClassLabelSelectorAsSelector creates a labels.Selecter which selects objects that has the "styra-controller/class" label with the value `class`.

func ControllerClassMatches

func ControllerClassMatches(o client.Object, class string) bool

ControllerClassMatches checks if the object has the `styra-controller/class` label with the value `class`.

func HasManagedBy

func HasManagedBy(o client.Object) bool

HasManagedBy checks if the object has the label `app.kubernetes.io/managed-by` set to styra-controller

func SetManagedBy

func SetManagedBy(o client.Object)

SetManagedBy sets the `app.kubernetes.io/managed-by` label to styra-controller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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