helpers

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackendServiceName added in v1.16.0

func GetBackendServiceName(k8sclient client.Client, namespace string, backendObjectReference gatewayv1.BackendObjectReference) (string, error)

func GetServiceName added in v1.16.0

func GetServiceName(svcImport *mcsapiv1alpha1.ServiceImport) (string, error)

func HasServiceImportSupport added in v1.16.0

func HasServiceImportSupport(scheme *runtime.Scheme) bool

HasServiceImportSupport return if the ServiceImport CRD is supported. This checks if the MCS API group is registered in the client scheme and it is expected that it is registered only if the ServiceImport CRD has been installed prior to the client setup.

func IsBackendReferenceAllowed

func IsBackendReferenceAllowed(originatingNamespace string, be gatewayv1.BackendRef, gvk schema.GroupVersionKind, grants []gatewayv1beta1.ReferenceGrant) bool

IsBackendReferenceAllowed returns true if the backend reference is allowed by the reference grant.

func IsGammaService added in v1.16.0

func IsGammaService(parent gatewayv1.ParentReference) bool

func IsGateway

func IsGateway(parent gatewayv1.ParentReference) bool

func IsSecret

func IsSecret(secret gatewayv1.SecretObjectReference) bool

func IsSecretReferenceAllowed

func IsSecretReferenceAllowed(originatingNamespace string, sr gatewayv1.SecretObjectReference, gvk schema.GroupVersionKind, grants []gatewayv1beta1.ReferenceGrant) bool

IsSecretReferenceAllowed returns true if the secret reference is allowed by the reference grant.

func IsServiceImport added in v1.16.0

func IsServiceImport(be gatewayv1.BackendObjectReference) bool

func NamespaceDerefOr

func NamespaceDerefOr(namespace *gatewayv1.Namespace, defaultNamespace string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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