Documentation ¶
Index ¶
- Constants
- type AddonReconciler
- func (r *AddonReconciler) AnnotatedEventf(object k8sruntime.Object, annotations map[string]string, ...)
- func (r *AddonReconciler) Event(object k8sruntime.Object, eventtype, reason, message string)
- func (r *AddonReconciler) Eventf(object k8sruntime.Object, eventtype, reason, messageFmt string, ...)
- func (r *AddonReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *AddonReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
View Source
const ( // annotation keys ControllerPaused = "controller.kubeblocks.io/controller-paused" SkipInstallableCheck = "extensions.kubeblocks.io/skip-installable-check" NoDeleteJobs = "extensions.kubeblocks.io/no-delete-jobs" AddonDefaultIsEmpty = "addons.extensions.kubeblocks.io/default-is-empty" // condition reasons AddonDisabled = "AddonDisabled" AddonEnabled = "AddonEnabled" // event reasons InstallableCheckSkipped = "InstallableCheckSkipped" InstallableRequirementUnmatched = "InstallableRequirementUnmatched" AddonAutoInstall = "AddonAutoInstall" AddonSetDefaultValues = "AddonSetDefaultValues" DisablingAddon = "DisablingAddon" EnablingAddon = "EnablingAddon" InstallationFailed = "InstallationFailed" InstallationFailedLogs = "InstallationFailedLogs" UninstallationFailed = "UninstallationFailed" UninstallationFailedLogs = "UninstallationFailedLogs" AddonRefObjError = "ReferenceObjectError" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddonReconciler ¶
type AddonReconciler struct { client.Client Scheme *k8sruntime.Scheme Recorder record.EventRecorder RestConfig *rest.Config }
AddonReconciler reconciles a Addon object
func (*AddonReconciler) AnnotatedEventf ¶
func (r *AddonReconciler) AnnotatedEventf(object k8sruntime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...interface{})
AnnotatedEventf is just like eventf, but with annotations attached
func (*AddonReconciler) Event ¶
func (r *AddonReconciler) Event(object k8sruntime.Object, eventtype, reason, message string)
func (*AddonReconciler) Eventf ¶
func (r *AddonReconciler) Eventf(object k8sruntime.Object, eventtype, reason, messageFmt string, args ...interface{})
Eventf is just like Event, but with Sprintf for the message field.
func (*AddonReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*AddonReconciler) SetupWithManager ¶
func (r *AddonReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.