controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const Finalizers = "kubeeye.finalizers.kubesphere.io"

Variables

This section is empty.

Functions

func ComputeLevel

func ComputeLevel(data interface{}, mapLevel map[kubeeyev1alpha2.Level]*int)

func ConvertTaskStatus

func ConvertTaskStatus(tasks []*kubeeyev1alpha2.InspectTask) (taskStatus []kubeeyev1alpha2.TaskNames)

func GetDeploySchedule

func GetDeploySchedule(r []byte) (string, error)

func GetIssuesNumber

func GetIssuesNumber(result *kubeeyev1alpha2.InspectResult) (n int)

Types

type InspectPlanReconciler

type InspectPlanReconciler struct {
	client.Client
	K8sClient      *kube.KubernetesClient
	Scheme         *runtime.Scheme
	KubeEyeFactory kubeeyeInformers.Interface
}

InspectPlanReconciler reconciles a InspectPlan object

func (*InspectPlanReconciler) GetUpdatePlanRule

func (*InspectPlanReconciler) Reconcile

func (r *InspectPlanReconciler) 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 InspectPlan 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.11.2/pkg/reconcile

func (*InspectPlanReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type InspectResultReconciler

type InspectResultReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	KubeEyeFactory kubeeyeInformers.Interface
	K8sFactory     informers.SharedInformerFactory
}

InspectResultReconciler reconciles a InspectResult object

func (*InspectResultReconciler) CountLevelNum

func (r *InspectResultReconciler) CountLevelNum(resultName string) (map[kubeeyev1alpha2.Level]*int, error)

func (*InspectResultReconciler) Reconcile

func (r *InspectResultReconciler) 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 InspectResult 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.14.1/pkg/reconcile

func (*InspectResultReconciler) SendMessage

func (r *InspectResultReconciler) SendMessage(result *kubeeyev1alpha2.InspectResult)

func (*InspectResultReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type InspectRulesReconciler

type InspectRulesReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

InspectRulesReconciler reconciles a Insights object

func (*InspectRulesReconciler) Reconcile

func (r *InspectRulesReconciler) 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 Insights 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.13.0/pkg/reconcile

func (*InspectRulesReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type InspectTaskReconciler

type InspectTaskReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	K8sClients     *kube.KubernetesClient
	KubeEyeFactory kubeeyeInformers.Interface
	K8sFactory     informers.SharedInformerFactory
}

InspectTaskReconciler reconciles a InspectTask object

func (*InspectTaskReconciler) GenerateResult

func (*InspectTaskReconciler) Reconcile

func (r *InspectTaskReconciler) 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 InspectTask 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.11.2/pkg/reconcile

func (*InspectTaskReconciler) SetupWithManager

func (r *InspectTaskReconciler) 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