Documentation ¶
Index ¶
Constants ¶
const (
ControllerName = "configurable_route_controller"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(mgr manager.Manager, config Config, eventRecorder events.Recorder) (controller.Controller, error)
New creates the configurable route controller from configuration. This is the controller that handles all the logic for generating roles and rolebindings for operators that include routes with configurable hostnames and serving certificates.
Cluster-admins may provide a custom hostname and serving certificate for a route by creating a spec.componentRoute entry in the ingresses.config.openshift.io/cluster resource. If a componentRoute entry exists in the status.componentRoutes list with a matching namespace and name this controller will generate: - A role that grants get/list/watch permissions for the secret defined in the spec. - A roleBinding that binds the aforementioned role to each consumingUser specified in the corresponding status entry.