utilsk8s

package
v1.0.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: 11 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 IsDefaultsRefGroupKindSupported added in v0.9.1

func IsDefaultsRefGroupKindSupported(defaultsRef v3.CRReference, extractGVK ExtractGVK) bool

IsDefaultsRefGroupKindSupported checks if the provided Defaults reference has a supported Group and Kind. It only supports `v3.Defaults` 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 IsGlobalRefGroupKindSupported added in v0.9.1

func IsGlobalRefGroupKindSupported(globalRef v3.CRReference, extractGVK ExtractGVK) bool

IsGlobalRefGroupKindSupported checks if the provided Global reference has a supported Group and Kind. It only supports `v3.Global` 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