Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthcheckReconciler ¶
type HealthcheckReconciler struct { client.Client Scheme *runtime.Scheme Manager ctrl.Manager DisableCommandsChecks bool Healthcheck *healthcheck.Component Config *KubernetesCRD Logger *zap.Logger // contains filtered or unexported fields }
HealthcheckReconciler reconciles a Healthcheck object
func NewHealthcheckReconciler ¶
func NewHealthcheckReconciler(logger *zap.Logger, healthcheck *healthcheck.Component, config *KubernetesCRD, disableCommandsChecks bool) (*HealthcheckReconciler, error)
NewHealthcheckReconciler build a pod reconciler component
func (*HealthcheckReconciler) Reconcile ¶
func (c *HealthcheckReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=cabourotte.mcorbin.fr,resources=healthchecks,verbs=get;list;watch +kubebuilder:rbac:groups=cabourotte.mcorbin.fr,resources=healthchecks/status,verbs=get
func (*HealthcheckReconciler) SetupWithManager ¶
func (c *HealthcheckReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*HealthcheckReconciler) Start ¶
func (c *HealthcheckReconciler) Start() error
Start start the pod reconciler component
func (*HealthcheckReconciler) Stop ¶
func (c *HealthcheckReconciler) Stop() error
Stop stop the pod reconciler
type KubernetesCRD ¶
KubernetesPod pod discovery
type KubernetesConfiguration ¶
type KubernetesConfiguration struct { DisableCommandsChecks bool `yaml:"disable-commands-checks"` CRD KubernetesCRD Pod KubernetesPod Service KubernetesService }
KubernetesConfiguration Kubernetes service discovery
type KubernetesPod ¶
KubernetesPod pod discovery
type KubernetesService ¶
KubernetesService service discovery
type PodReconciler ¶
type PodReconciler struct { client.Client Manager ctrl.Manager Config *KubernetesPod DisableCommandsChecks bool Healthcheck *healthcheck.Component Logger *zap.Logger Controller controller.Controller // contains filtered or unexported fields }
PodReconciler main pod reconciler component
func NewPodReconciler ¶
func NewPodReconciler(logger *zap.Logger, healthcheck *healthcheck.Component, config *KubernetesPod, disableCommandsChecks bool) (*PodReconciler, error)
NewPodReconciler build a pod reconciler component
func (*PodReconciler) Start ¶
func (c *PodReconciler) Start() error
Start start the pod reconciler component
type ServiceReconciler ¶
type ServiceReconciler struct { client.Client Manager ctrl.Manager Config *KubernetesService DisableCommandsChecks bool Healthcheck *healthcheck.Component Logger *zap.Logger Controller controller.Controller // contains filtered or unexported fields }
ServiceReconciler main service reconciler component
func NewServiceReconciler ¶
func NewServiceReconciler(logger *zap.Logger, healthcheck *healthcheck.Component, config *KubernetesService, disableCommandsChecks bool) (*ServiceReconciler, error)
NewServiceReconciler build a service reconciler component
func (*ServiceReconciler) Start ¶
func (c *ServiceReconciler) Start() error
Start start the service reconciler component
func (*ServiceReconciler) Stop ¶
func (c *ServiceReconciler) Stop() error
Stop stop the service reconciler