Documentation ¶
Index ¶
- Constants
- func ComputeLevel(data interface{}, mapLevel map[kubeeyev1alpha2.Level]*int)
- func ConvertTaskStatus(tasks []*kubeeyev1alpha2.InspectTask) (taskStatus []kubeeyev1alpha2.TaskNames)
- func GetDeploySchedule(r []byte) (string, error)
- func GetIssuesNumber(result *kubeeyev1alpha2.InspectResult) (n int)
- func GetStatus(task *kubeeyev1alpha2.InspectTask) kubeeyev1alpha2.Phase
- type InspectPlanReconciler
- func (r *InspectPlanReconciler) GetUpdatePlanRule(plan *kubeeyev1alpha2.InspectPlan) ([]kubeeyev1alpha2.InspectRuleNames, bool)
- func (r *InspectPlanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *InspectPlanReconciler) SetupWithManager(mgr ctrl.Manager) error
- type InspectResultReconciler
- func (r *InspectResultReconciler) CountLevelNum(resultName string) (map[kubeeyev1alpha2.Level]*int, error)
- func (r *InspectResultReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *InspectResultReconciler) SendMessage(result *kubeeyev1alpha2.InspectResult)
- func (r *InspectResultReconciler) SetupWithManager(mgr ctrl.Manager) error
- type InspectRulesReconciler
- type InspectTaskReconciler
- func (r *InspectTaskReconciler) GenerateResult(task *kubeeyev1alpha2.InspectTask, cluster kubeeyev1alpha2.Cluster, ...) kubeeyev1alpha2.InspectResult
- func (r *InspectTaskReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *InspectTaskReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
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 GetIssuesNumber ¶
func GetIssuesNumber(result *kubeeyev1alpha2.InspectResult) (n int)
func GetStatus ¶
func GetStatus(task *kubeeyev1alpha2.InspectTask) kubeeyev1alpha2.Phase
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 (r *InspectPlanReconciler) GetUpdatePlanRule(plan *kubeeyev1alpha2.InspectPlan) ([]kubeeyev1alpha2.InspectRuleNames, bool)
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 ¶
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 (r *InspectTaskReconciler) GenerateResult(task *kubeeyev1alpha2.InspectTask, cluster kubeeyev1alpha2.Cluster, clients *kube.KubernetesClient, ruleNum map[string]int) kubeeyev1alpha2.InspectResult
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.