Documentation ¶
Index ¶
- Constants
- Variables
- func DecorateLegacyRouteWithEmptyDestinationCACertificates(obj runtime.Object) error
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)
- func Matcher(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewStrategy(allocator route.RouteAllocator, sarClient SubjectAccessReviewInterface) routeStrategy
- type SubjectAccessReviewInterface
Constants ¶
View Source
const HostGeneratedAnnotationKey = "openshift.io/host.generated"
HostGeneratedAnnotationKey is the key for an annotation set to "true" if the route's host was generated
Variables ¶
View Source
var StatusStrategy = routeStatusStrategy{NewStrategy(nil, nil)}
Functions ¶
func DecorateLegacyRouteWithEmptyDestinationCACertificates ¶
DecorateLegacyRouteWithEmptyDestinationCACertificates is used for /oapi/v1 route endpoints to prevent legacy clients from seeing an empty destination CA certificate for reencrypt routes, which the 'route.openshift.io/v1' endpoint allows. These values are injected in REST responses and stripped in PrepareForCreate and PrepareForUpdate.
func NewStrategy ¶ added in v1.0.6
func NewStrategy(allocator route.RouteAllocator, sarClient SubjectAccessReviewInterface) routeStrategy
NewStrategy initializes the default logic that applies when creating and updating Route objects via the REST API.
Types ¶
type SubjectAccessReviewInterface ¶
type SubjectAccessReviewInterface interface {
CreateSubjectAccessReview(ctx apirequest.Context, subjectAccessReview *authorizationapi.SubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
}
Registry is an interface for performing subject access reviews
Click to show internal directories.
Click to hide internal directories.