Documentation
¶
Index ¶
- Constants
- func GetBackendServiceName(k8sclient client.Client, namespace string, ...) (string, error)
- func GetConcreteObject(schemaType schema.GroupVersionKind) runtime.Object
- func GetServiceName(svcImport *mcsapiv1alpha1.ServiceImport) (string, error)
- func HasServiceImportSupport(scheme *runtime.Scheme) bool
- func HasTLSRouteSupport(scheme *runtime.Scheme) bool
- func IsBackendReferenceAllowed(originatingNamespace string, be gatewayv1.BackendRef, ...) bool
- func IsConditionPresent(conds []metav1.Condition, condType string) bool
- func IsGammaService(parent gatewayv1.ParentReference) bool
- func IsGammaServiceEqual(parent gatewayv1.ParentReference, gammaService *corev1.Service, ...) bool
- func IsGateway(parent gatewayv1.ParentReference) bool
- func IsSecret(secret gatewayv1.SecretObjectReference) bool
- func IsSecretReferenceAllowed(originatingNamespace string, sr gatewayv1.SecretObjectReference, ...) bool
- func IsService(be gatewayv1.BackendObjectReference) bool
- func IsServiceImport(be gatewayv1.BackendObjectReference) bool
- func NamespaceDerefOr(namespace *gatewayv1.Namespace, defaultNamespace string) string
Constants ¶
const ( GatewayClassKind string = "gatewayclasses" GatewayKind string = "gateways" HTTPRouteKind string = "httproutes" GRPCRouteKind string = "grpcroutes" ReferenceGrantKind string = "referencegrants" TLSRouteKind string = "tlsroutes" TLSRouteListKind string = "tlsroutelists" ServiceImportKind string = "serviceimports" ServiceImportListKind string = "serviceimportlists" )
Variables ¶
This section is empty.
Functions ¶
func GetBackendServiceName ¶ added in v1.16.0
func GetConcreteObject ¶ added in v1.17.0
func GetConcreteObject(schemaType schema.GroupVersionKind) runtime.Object
getConcreteObject returns an instance of a concrete object type based on the given GroupVersionKind.
func GetServiceName ¶ added in v1.16.0
func GetServiceName(svcImport *mcsapiv1alpha1.ServiceImport) (string, error)
func HasServiceImportSupport ¶ added in v1.16.0
HasServiceImportSupport return if the ServiceImport CRD is supported. This checks if the MCS API group ServiceImport CRD 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 HasTLSRouteSupport ¶ added in v1.17.4
HasTLSRouteSupport returns if the TLSRoute CRD is supported. This checks if the Gateway API v1alpha2 TLSRoute CRD is registered in the client scheme and it is expected that it is registered only if the TLSRoute 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 IsConditionPresent ¶ added in v1.18.3
func IsGammaService ¶ added in v1.16.0
func IsGammaService(parent gatewayv1.ParentReference) bool
func IsGammaServiceEqual ¶ added in v1.17.8
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 IsService ¶
func IsService(be gatewayv1.BackendObjectReference) bool
func IsServiceImport ¶ added in v1.16.0
func IsServiceImport(be gatewayv1.BackendObjectReference) bool
Types ¶
This section is empty.