Documentation
¶
Index ¶
- func IsBackendRefGroupKindSupported(backendRef gatewayv1.BackendObjectReference, extractGVK ExtractGVK) bool
- func IsDefaultsRefGroupKindSupported(defaultsRef v3.CRReference, extractGVK ExtractGVK) bool
- func IsFilterExtensionRefKindMergeType(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool
- func IsFilterExtensionRefKindSupported(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool
- func IsGlobalRefGroupKindSupported(globalRef v3.CRReference, extractGVK ExtractGVK) bool
- func IsSecretGroupKindSupported(certRef gatewayv1.SecretObjectReference) bool
- type ExtractGVK
- type ParentRefKind
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 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.
type ParentRefKind ¶ added in v1.1.0
type ParentRefKind int
ParentRefKind identifies which of the supported parent kinds a ParentReference designates. The zero value is the unsupported case, so a ParentRefKind that was never resolved cannot be mistaken for a Gateway or a ListenerSet.
const ( ParentRefKindUnsupported ParentRefKind = iota ParentRefKindGateway ParentRefKindListenerSet )
func ResolveParentRefKind ¶ added in v1.1.0
func ResolveParentRefKind(parentRef gatewayv1.ParentReference, extractGVK ExtractGVK) ParentRefKind
ResolveParentRefKind returns the parent kind a ParentReference designates, among the ones we support: gatewayv1.Gateway and gatewayv1.ListenerSet.
The kind and group are optional on a ParentReference: when absent they default to the Gateway ones, and a ListenerSet parentRef therefore only needs a group when its own group differs from the Gateway's.
func (ParentRefKind) Unsupported ¶ added in v1.1.0
func (k ParentRefKind) Unsupported() bool
Unsupported reports whether the parent reference designates no kind we serve.