Documentation ¶
Index ¶
- func GetBackendServiceName(k8sclient client.Client, namespace string, ...) (string, error)
- func GetServiceName(svcImport *mcsapiv1alpha1.ServiceImport) (string, error)
- func HasServiceImportSupport(scheme *runtime.Scheme) bool
- func IsBackendReferenceAllowed(originatingNamespace string, be gatewayv1.BackendRef, ...) bool
- func IsGammaService(parent gatewayv1.ParentReference) 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBackendServiceName ¶ added in v1.16.0
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 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 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.
Click to show internal directories.
Click to hide internal directories.