Documentation ¶
Index ¶
Constants ¶
const (
GrafanaDashboardFinalizer = "grafanadashboard.openviz.dev/finalizer"
)
const (
GrafanaDatasourceFinalizer = "grafanadatasource.openviz.dev/finalizer"
)
Variables ¶
This section is empty.
Functions ¶
func GrafanaState ¶ added in v0.0.10
func GrafanaState(ab *appcatalog.AppBinding) (string, error)
func IsStateChanged ¶ added in v0.0.10
func IsStateChanged(db *openvizapi.GrafanaDashboard, ab *appcatalog.AppBinding) bool
Types ¶
type GrafanaDashboardReconciler ¶
type GrafanaDashboardReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder RequeueAfterDuration time.Duration }
GrafanaDashboardReconciler reconciles a GrafanaDashboard object
func (*GrafanaDashboardReconciler) Reconcile ¶
func (r *GrafanaDashboardReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*GrafanaDashboardReconciler) SetupWithManager ¶
func (r *GrafanaDashboardReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GrafanaDatasourceReconciler ¶
type GrafanaDatasourceReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder }
GrafanaDatasourceReconciler reconciles a GrafanaDatasource object
func (*GrafanaDatasourceReconciler) Reconcile ¶
func (r *GrafanaDatasourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*GrafanaDatasourceReconciler) SetupWithManager ¶
func (r *GrafanaDatasourceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.