Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAlertmanagerURL ¶
GetAlertmanagerURL discovers the Alertmanager endpoint in OpenShift.
func GetClientConfig ¶
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" )
Click to show internal directories.
Click to hide internal directories.