utils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const TRUE string = "true"

Variables

This section is empty.

Functions

func GetDeviceClassByName

func GetDeviceClassByName(ctx context.Context, c client.Reader, name string) (*resources.DeviceClass, error)

Get DeviceClass by name (Does not return error if not found).

func GetGatewayClassClassByObjectName

func GetGatewayClassClassByObjectName(ctx context.Context, c client.Reader, gatewayClassName gatewayv1.ObjectName) (*gatewayv1.GatewayClass, error)

Get GatewayClassClass by name (Does not return error if not found).

func GetIngressClassByName

func GetIngressClassByName(ctx context.Context, version *version.Version, c client.Reader, ingressClassName *string) (client.Object, error)

Get IngressClass by name (Does not return error if not found).

func GetPriorityClassByName

func GetPriorityClassByName(ctx context.Context, c client.Reader, name string) (*schedulev1.PriorityClass, error)

Get PriorityClass by name (Does not return error if not found).

func GetStorageClassByName

func GetStorageClassByName(ctx context.Context, c client.Reader, name string) (*storagev1.StorageClass, error)

Get StorageClass by name (Does not return error if not found).

func IsDefaultIngressClass

func IsDefaultIngressClass(class client.Object) bool

func IsDefaultPriorityClass

func IsDefaultPriorityClass(class *schedulev1.PriorityClass) bool

IsDefaultPriorityClass checks if the given PriorityClass is cluster default.

func IsDefaultStorageClass

func IsDefaultStorageClass(class client.Object) bool

IsDefaultStorageClass checks if the given StorageClass is cluster default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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