configurableroutes

package
v0.0.0-...-b7d42a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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.

Types

type Config

type Config struct {
	SecretNamespace string
}

Config holds all the things necessary for the controller to run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL