dashboard

package
v0.0.0-...-dc3a80b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DashboardName     = "grafana-dashboard-cluster-logging"
	DashboardNS       = "openshift-config-managed"
	DashboardFileName = "openshift-logging.json"
	DashboardHashName = "contentHash"
)

Variables

View Source
var (
	//go:embed openshift-logging-dashboard.json
	DashboardConfig string
)

Functions

func ReconcileForDashboards

func ReconcileForDashboards(k8sClient client.Client, reader client.Reader) error

func RemoveDashboardConfigMap

func RemoveDashboardConfigMap(c client.Client, r client.Reader) (err error)

RemoveDashboardConfigMap removes the config map in the grafana dashboard

Types

type ReconcileDashboards

type ReconcileDashboards struct {
	Client client.Client

	// Reader is an initialized client.Reader that reads objects directly from the apiserver
	// instead of the cache. Useful for cases where need to read/write to a namespace other than
	// the deployed namespace (e.g. openshift-config-managed)
	Reader client.Reader
}

func (*ReconcileDashboards) Reconcile

func (r *ReconcileDashboards) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*ReconcileDashboards) SetupWithManager

func (r *ReconcileDashboards) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager

Jump to

Keyboard shortcuts

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