Documentation
¶
Overview ¶
Package ocproute exposes a function through an OpenShift Route.
Routes are an OpenShift-only resource, but both binaries attach this Exposer on every platform: on a cluster with no Route API the cost is one List that comes back NotFound. Choosing it is the caller's job: nothing here detects the platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exposer ¶
type Exposer struct {
// contains filtered or unexported fields
}
Exposer creates and removes the OpenShift Route fronting a function.
func New ¶
New returns an Exposer stamping its Routes with deployerName, one of the names in pkg/deployers.
func (*Exposer) Expose ¶
func (x *Exposer) Expose(ctx context.Context, client dynamic.Interface, e deployer.Exposure) (string, error)
Expose creates or updates the Route for 'e' and returns the hostname a router admitted it at. A Route this call created that fails admission is removed again; a pre-existing one is kept, it may be serving.