route

package
v0.0.0-...-6f2500b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoute

func ApplyRoute(client routeclient.RoutesGetter, required *routev1.Route) (*routev1.Route, bool, error)

func GetActiveRouteInfo

func GetActiveRouteInfo(routeClient routev1listers.RouteLister, activeRouteName string) (route *routev1.Route, routeURL *url.URL, reason string, err error)

func GetCustomRouteName

func GetCustomRouteName(routeName string) string

func GetDefaultRouteHost

func GetDefaultRouteHost(routeName string, ingressConfig *configv1.Ingress) string

Types

type CustomTLSCert

type CustomTLSCert struct {
	Certificate string
	Key         string
}

holds information about custom TLS certificate and its key

func GetCustomTLS

func GetCustomTLS(customCertSecret *corev1.Secret) (*CustomTLSCert, error)

type RouteConfig

type RouteConfig struct {
	// contains filtered or unexported fields
}

func NewRouteConfig

func NewRouteConfig(operatorConfig *operatorv1.Console, ingressConfig *configv1.Ingress, routeName string) *RouteConfig

func (*RouteConfig) CustomRoute

func (rc *RouteConfig) CustomRoute(tlsConfig *CustomTLSCert, routeName string) *routev1.Route

func (*RouteConfig) DefaultRoute

func (rc *RouteConfig) DefaultRoute(tlsConfig *CustomTLSCert, ingressConfig *configv1.Ingress) *routev1.Route

Default `console` route points by default to the `console` service. If custom hostname for the console is set, then the default route should point to the redirect `console-redirect` service and the created custom route should be pointing to the `console` service.

func (*RouteConfig) GetCustomRouteHostname

func (rc *RouteConfig) GetCustomRouteHostname() string

func (*RouteConfig) GetCustomTLSSecretName

func (rc *RouteConfig) GetCustomTLSSecretName() string

func (*RouteConfig) GetDefaultTLSSecretName

func (rc *RouteConfig) GetDefaultTLSSecretName() string

func (*RouteConfig) GetDomain

func (rc *RouteConfig) GetDomain() string

func (*RouteConfig) HostnameMatch

func (rc *RouteConfig) HostnameMatch() bool

func (*RouteConfig) IsCustomHostnameSet

func (rc *RouteConfig) IsCustomHostnameSet() bool

func (*RouteConfig) IsCustomTLSSecretSet

func (rc *RouteConfig) IsCustomTLSSecretSet() bool

func (*RouteConfig) IsDefaultTLSSecretSet

func (rc *RouteConfig) IsDefaultTLSSecretSet() bool

type RouteControllerSpec

type RouteControllerSpec struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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