Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAlertmanagerURL ¶
GetAlertmanagerURL discovers the Alertmanager endpoint in OpenShift.
func GetClientCmdConfig ¶ added in v0.6.0
func GetClientCmdConfig() clientcmd.ClientConfig
GetClientCmdConfig returns a ClientConfig that can produce both a REST config and raw kubeconfig data, using the default loading rules.
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.