Documentation
¶
Overview ¶
Package analysis provides functions that analyse routes and setup markers that will be reported by oc status
Index ¶
- Constants
- func FindMissingRouter(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
- func FindMissingTLSTerminationType(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
- func FindPathBasedPassthroughRoutes(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
- func FindPortMappingIssues(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
- func FindRouteAdmissionFailures(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
Constants ¶
View Source
const (
// MissingRoutePortWarning is returned when a route has no route port specified
// and the service it routes to has multiple ports.
MissingRoutePortWarning = "MissingRoutePort"
// WrongRoutePortWarning is returned when a route has a route port specified
// but the service it points to has no such port (either as a named port or as
// a target port).
WrongRoutePortWarning = "WrongRoutePort"
// MissingServiceWarning is returned when there is no service for the specific route.
MissingServiceWarning = "MissingService"
// MissingTLSTerminationTypeErr is returned when a route with a tls config doesn't
// specify a tls termination type.
MissingTLSTerminationTypeErr = "MissingTLSTermination"
// PathBasedPassthroughErr is returned when a path based route is passthrough
// terminated.
PathBasedPassthroughErr = "PathBasedPassthrough"
// MissingTLSTerminationTypeErr is returned when a route with a tls config doesn't
// specify a tls termination type.
RouteNotAdmittedTypeErr = "RouteNotAdmitted"
// MissingRequiredRouterErr is returned when no router has been setup.
MissingRequiredRouterErr = "MissingRequiredRouter"
)
Variables ¶
This section is empty.
Functions ¶
func FindMissingRouter ¶
func FindMissingRouter(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
FindMissingRouter creates markers for all routes in case there is no running router.
func FindMissingTLSTerminationType ¶
func FindMissingTLSTerminationType(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
func FindPathBasedPassthroughRoutes ¶
func FindPathBasedPassthroughRoutes(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
func FindPortMappingIssues ¶
func FindPortMappingIssues(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
FindPortMappingIssues checks all routes and reports any issues related to their ports. Also non-existent services for routes are reported here.
func FindRouteAdmissionFailures ¶
func FindRouteAdmissionFailures(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
FindRouteAdmissionFailures creates markers for any routes that were rejected by their routers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.