extensions

package
v0.6.0-alpha.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: AGPL-3.0 Imports: 29 Imported by: 1

Documentation

Index

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

func (r *AddonReconciler) 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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL