kubesphere / kubeeye

KubeEye aims to find various problems on Kubernetes, such as application misconfiguration, unhealthy cluster components and node problems.
https://kubesphere.io
Apache License 2.0
810 stars 126 forks source link

Manage plugins by CRD #207

Closed ruiyaoOps closed 2 years ago

ruiyaoOps commented 2 years ago

What would you like to be added: Create a new CRD plugins-manager for managing plugins. When a CR is created and spec.enabled is set to true, the plugin will be automatically deployed. When the creation is complete, status.ready will be set to true.

apiVersion: kubeeye.kubesphere.io/v1alpha1
kind: PluginSubscription
metadata:
  namespace: kubeeye-system
  name: kubebench
spec:
  enabled: true
status:
  ready: true

clusterinsights will watch this CRD, and when a new CR is created, it will be automatically try to get the plugin audit results.

Why is this needed: Automatically manage resources