k8s

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlertmanagerURL

func GetAlertmanagerURL() (string, error)

GetAlertmanagerURL discovers the Alertmanager endpoint in OpenShift.

func GetClientConfig

func GetClientConfig() (*rest.Config, error)

GetClientConfig returns a Kubernetes REST config using kubeconfig

func GetKubeClient

func GetKubeClient() (*kubernetes.Clientset, error)

GetKubeClient returns a Kubernetes client

func GetMetricsBackendURL

func GetMetricsBackendURL(backend MetricsBackend) (string, error)

GetMetricsBackendURL discovers the metrics backend endpoint in OpenShift.

Types

type MetricsBackend

type MetricsBackend string

MetricsBackend represents the type of metrics backend

const (
	MetricsBackendPrometheus MetricsBackend = "prometheus"
	MetricsBackendThanos     MetricsBackend = "thanos"
)

Jump to

Keyboard shortcuts

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