Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRouteCustomHostSAR ¶
func CheckRouteCustomHostSAR(ctx context.Context, fldPath *field.Path, sarc SubjectAccessReviewCreator) field.ErrorList
CheckRouteCustomHostSAR checks if user has permission to create and update routes/custom-host sub-resource
Types ¶
type RouteValidationOptions ¶
type RouteValidationOptions struct { // AllowExternalCertificates option is set when the RouteExternalCertificate // feature gate is enabled. AllowExternalCertificates bool }
RouteValidationOptions used to tweak how/what fields are validated. These options are propagated by the apiserver.
type SubjectAccessReviewCreator ¶
type SubjectAccessReviewCreator interface {
Create(ctx context.Context, sar *authorizationv1.SubjectAccessReview, opts metav1.CreateOptions) (*authorizationv1.SubjectAccessReview, error)
}
SubjectAccessReviewCreator is an interface for performing subject access reviews
Directories ¶
Path | Synopsis |
---|---|
Package routeapihelpers contains utilities for handling OpenShift route objects.
|
Package routeapihelpers contains utilities for handling OpenShift route objects. |
Click to show internal directories.
Click to hide internal directories.