Documentation ¶
Overview ¶
package openshift provides tools for interacting with OpenShift clusters.
- Convert between OpenShift console URL and korrel8r Query. - Locate default observability services deployed in an OpenShift cluster.
Index ¶
- Constants
- Variables
- func ConsoleURL(ctx context.Context, c client.Client) (*url.URL, error)
- func NamespacedName(namespace, name string) types.NamespacedName
- func RouteHost(ctx context.Context, c client.Client, nn types.NamespacedName) (string, error)
- func ServiceHost(ctx context.Context, c client.Client, nn types.NamespacedName) (string, error)
- type Console
Constants ¶
View Source
const ( OpenshiftLogging = "openshift-logging" LoggingLoki = "logging-loki" OpenshiftConsole = "openshift-console" OpenshiftMonitoring = "openshift-monitoring" ThanosQuerier = "thanos-querier" AlertmanagerMain = "alertmanager-main" )
Observability namespaces
Variables ¶
View Source
var ( LokiStackNSName = NamespacedName(OpenshiftLogging, LoggingLoki) ConsoleNSName = NamespacedName(OpenshiftConsole, "console") ThanosQuerierNSName = NamespacedName(OpenshiftMonitoring, ThanosQuerier) PrometheusK8sName = NamespacedName(OpenshiftMonitoring, "prometheus-k8s") AlertmanagerMainNSName = NamespacedName(OpenshiftMonitoring, AlertmanagerMain) )
Observability service namespace-names
Functions ¶
func ConsoleURL ¶
ConsoleURL returns the base URL for the Openshift console on the current cluster.
func NamespacedName ¶
func NamespacedName(namespace, name string) types.NamespacedName
NamespacedName constructs a namespaced name
func ServiceHost ¶ added in v0.5.2
Types ¶
type Console ¶ added in v0.5.7
Console convert console URL to/from korrel8r Query.
func (*Console) QueryFromURL ¶ added in v0.6.1
Click to show internal directories.
Click to hide internal directories.