utilsk8s

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBackendRefGroupKindSupported

func IsBackendRefGroupKindSupported(backendRef gatewayv1.BackendObjectReference, extractGVK ExtractGVK) bool

IsBackendRefGroupKindSupported checks if the provided HTTPRoute parent reference has a supported Group and Kind. It only supports `corev1.Service` resources.

func IsFilterExtensionRefKindMergeType

func IsFilterExtensionRefKindMergeType(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool

func IsFilterExtensionRefKindSupported

func IsFilterExtensionRefKindSupported(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool

IsFilterExtensionRefKindSupported checks if the provided filter ExtensionRef has a supported Group and Kind. It only supports `v3.Backend` resources.

func IsParentRefGroupKindSupported

func IsParentRefGroupKindSupported(parentRef gatewayv1.ParentReference, extractGVK ExtractGVK) bool

IsParentRefGroupKindSupported checks if the provided HTTPRoute parent reference has a supported Group and Kind. It only supports `gatewayv1.Gateway` resources.

func IsSecretGroupKindSupported

func IsSecretGroupKindSupported(certRef gatewayv1.SecretObjectReference) bool

IsSecretGroupKindSupported checks if the provided certificate reference has a supported Group and Kind. It only supports core `v1.Secret` resources.

Types

type ExtractGVK

type ExtractGVK func(object client.Object) schema.GroupVersionKind

ExtractGVK is a function that extracts the GroupVersionKind (GVK) of a client.object. It will log an error if the GKV cannot be extracted.

func NewExtractGKV

func NewExtractGKV(scheme *runtime.Scheme, logger *slog.Logger) ExtractGVK

NewExtractGKV creates a new MustExtractGVK function using the scheme.

Jump to

Keyboard shortcuts

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