Documentation ¶
Index ¶
- Constants
- func GetMatchingInstances(ctx context.Context, k8sClient client.Client, labelSelector *v1.LabelSelector) (v1beta1.GrafanaList, error)
- func ReconcilePlugins(ctx context.Context, k8sClient client.Client, scheme *runtime.Scheme, ...) error
- type GrafanaAlertRuleGroupReconciler
- func (r *GrafanaAlertRuleGroupReconciler) GetFolderUID(ctx context.Context, group *grafanav1beta1.GrafanaAlertRuleGroup) string
- func (r *GrafanaAlertRuleGroupReconciler) GetMatchingInstances(ctx context.Context, group *grafanav1beta1.GrafanaAlertRuleGroup, ...) ([]grafanav1beta1.Grafana, error)
- func (r *GrafanaAlertRuleGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GrafanaAlertRuleGroupReconciler) SetupWithManager(mgr ctrl.Manager) error
- type GrafanaDashboardReconciler
- func (r *GrafanaDashboardReconciler) DeleteFolderIfEmpty(client *grapi.Client, folderID int64) (http.Response, error)
- func (r *GrafanaDashboardReconciler) Exists(client *grapi.Client, uid string, title string, folderID int64) (bool, string, error)
- func (r *GrafanaDashboardReconciler) GetFolderID(client *grapi.Client, title string) (bool, int64, error)
- func (r *GrafanaDashboardReconciler) GetMatchingDashboardInstances(ctx context.Context, dashboard *v1beta1.GrafanaDashboard, ...) (v1beta1.GrafanaList, error)
- func (r *GrafanaDashboardReconciler) GetOrCreateFolder(client *grapi.Client, cr *v1beta1.GrafanaDashboard) (int64, error)
- func (r *GrafanaDashboardReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GrafanaDashboardReconciler) SetupWithManager(mgr ctrl.Manager, ctx context.Context) error
- func (r *GrafanaDashboardReconciler) UpdateHomeDashboard(ctx context.Context, grafana v1beta1.Grafana, uid string, ...) error
- type GrafanaDatasourceReconciler
- func (r *GrafanaDatasourceReconciler) Exists(client *gapi.Client, uid, name string) (bool, int64, error)
- func (r *GrafanaDatasourceReconciler) GetMatchingDatasourceInstances(ctx context.Context, datasource *v1beta1.GrafanaDatasource, ...) (v1beta1.GrafanaList, error)
- func (r *GrafanaDatasourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GrafanaDatasourceReconciler) SetupWithManager(mgr ctrl.Manager, ctx context.Context) error
- type GrafanaFolderReconciler
- func (r *GrafanaFolderReconciler) Exists(client *grapi.Client, cr *grafanav1beta1.GrafanaFolder) (bool, string, error)
- func (r *GrafanaFolderReconciler) GetMatchingFolderInstances(ctx context.Context, folder *grafanav1beta1.GrafanaFolder, ...) (grafanav1beta1.GrafanaList, error)
- func (r *GrafanaFolderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GrafanaFolderReconciler) SetupWithManager(mgr ctrl.Manager, ctx context.Context) error
- func (r *GrafanaFolderReconciler) UpdateStatus(ctx context.Context, cr *grafanav1beta1.GrafanaFolder) error
- type GrafanaReconciler
Constants ¶
const (
RequeueDelay = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func GetMatchingInstances ¶
func GetMatchingInstances(ctx context.Context, k8sClient client.Client, labelSelector *v1.LabelSelector) (v1beta1.GrafanaList, error)
Types ¶
type GrafanaAlertRuleGroupReconciler ¶ added in v5.7.0
type GrafanaAlertRuleGroupReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme }
GrafanaAlertRuleGroupReconciler reconciles a GrafanaAlertRuleGroup object
func (*GrafanaAlertRuleGroupReconciler) GetFolderUID ¶ added in v5.7.0
func (r *GrafanaAlertRuleGroupReconciler) GetFolderUID(ctx context.Context, group *grafanav1beta1.GrafanaAlertRuleGroup) string
func (*GrafanaAlertRuleGroupReconciler) GetMatchingInstances ¶ added in v5.7.0
func (r *GrafanaAlertRuleGroupReconciler) GetMatchingInstances(ctx context.Context, group *grafanav1beta1.GrafanaAlertRuleGroup, k8sClient client.Client) ([]grafanav1beta1.Grafana, error)
func (*GrafanaAlertRuleGroupReconciler) SetupWithManager ¶ added in v5.7.0
func (r *GrafanaAlertRuleGroupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GrafanaDashboardReconciler ¶
type GrafanaDashboardReconciler struct { Client client.Client Log logr.Logger Scheme *runtime.Scheme Discovery discovery.DiscoveryInterface }
GrafanaDashboardReconciler reconciles a GrafanaDashboard object
func (*GrafanaDashboardReconciler) DeleteFolderIfEmpty ¶
func (*GrafanaDashboardReconciler) GetFolderID ¶
func (*GrafanaDashboardReconciler) GetMatchingDashboardInstances ¶
func (r *GrafanaDashboardReconciler) GetMatchingDashboardInstances(ctx context.Context, dashboard *v1beta1.GrafanaDashboard, k8sClient client.Client) (v1beta1.GrafanaList, error)
func (*GrafanaDashboardReconciler) GetOrCreateFolder ¶
func (r *GrafanaDashboardReconciler) GetOrCreateFolder(client *grapi.Client, cr *v1beta1.GrafanaDashboard) (int64, error)
func (*GrafanaDashboardReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
func (*GrafanaDashboardReconciler) UpdateHomeDashboard ¶
func (r *GrafanaDashboardReconciler) UpdateHomeDashboard(ctx context.Context, grafana v1beta1.Grafana, uid string, dashboard *v1beta1.GrafanaDashboard) error
type GrafanaDatasourceReconciler ¶
GrafanaDatasourceReconciler reconciles a GrafanaDatasource object
func (*GrafanaDatasourceReconciler) GetMatchingDatasourceInstances ¶
func (r *GrafanaDatasourceReconciler) GetMatchingDatasourceInstances(ctx context.Context, datasource *v1beta1.GrafanaDatasource, k8sClient client.Client) (v1beta1.GrafanaList, error)
func (*GrafanaDatasourceReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type GrafanaFolderReconciler ¶
GrafanaFolderReconciler reconciles a GrafanaFolder object
func (*GrafanaFolderReconciler) Exists ¶
func (r *GrafanaFolderReconciler) Exists(client *grapi.Client, cr *grafanav1beta1.GrafanaFolder) (bool, string, error)
func (*GrafanaFolderReconciler) GetMatchingFolderInstances ¶
func (r *GrafanaFolderReconciler) GetMatchingFolderInstances(ctx context.Context, folder *grafanav1beta1.GrafanaFolder, k8sClient client.Client) (grafanav1beta1.GrafanaList, error)
func (*GrafanaFolderReconciler) Reconcile ¶
func (r *GrafanaFolderReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the GrafanaFolder object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile
func (*GrafanaFolderReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
func (*GrafanaFolderReconciler) UpdateStatus ¶
func (r *GrafanaFolderReconciler) UpdateStatus(ctx context.Context, cr *grafanav1beta1.GrafanaFolder) error
type GrafanaReconciler ¶
type GrafanaReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Discovery discovery.DiscoveryInterface IsOpenShift bool }
GrafanaReconciler reconciles a Grafana object
func (*GrafanaReconciler) SetupWithManager ¶
func (r *GrafanaReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package autodetect is for auto-detecting traits from the environment (platform, APIs, ...).
|
Package autodetect is for auto-detecting traits from the environment (platform, APIs, ...). |