Documentation ¶
Index ¶
- Constants
- func ComputeLevel(data interface{}, mapLevel map[kubeeyev1alpha2.Level]*int)
- func ConvertTaskStatus(tasks []kubeeyev1alpha2.InspectTask) (taskStatus []kubeeyev1alpha2.TaskNames)
- func GetStatus(task *kubeeyev1alpha2.InspectTask) kubeeyev1alpha2.Phase
- type InspectPlanReconciler
- type InspectResultReconciler
- type InspectRulesReconciler
- type InspectTaskReconciler
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 GetStatus ¶
func GetStatus(task *kubeeyev1alpha2.InspectTask) kubeeyev1alpha2.Phase
Types ¶
type InspectPlanReconciler ¶
type InspectPlanReconciler struct { client.Client K8sClient *kube.KubernetesClient Scheme *runtime.Scheme Instance sync.Map }
InspectPlanReconciler reconciles a InspectPlan object
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 ¶
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) 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 }
InspectTaskReconciler reconciles a InspectTask object
func (*InspectTaskReconciler) CreateInspect ¶
func (r *InspectTaskReconciler) CreateInspect(ctx context.Context, cluster kubeeyev1alpha2.Cluster, task *kubeeyev1alpha2.InspectTask, ruleLists []kubeeyev1alpha2.InspectRule, clients *kube.KubernetesClient, kubeEyeConfig conf.KubeEyeConfig) error
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.