Documentation ¶
Index ¶
- Constants
- func NewComponentDeleteManager(componentClient componentInterface, helmClient helmClient) *componentDeleteManager
- func NewComponentRequeueHandler(clientSet componentEcosystemInterface, recorder record.EventRecorder, ...) *componentRequeueHandler
- type ComponentInstallManager
- type ComponentManager
- type ComponentReconciler
- type ComponentUpgradeManager
- type DefaultComponentManager
Constants ¶
const ( // InstallEventReason The name of the installation event InstallEventReason = "Installation" // DeinstallationEventReason The name of the deinstallation event DeinstallationEventReason = "Deinstallation" // UpgradeEventReason The name of the upgrade event UpgradeEventReason = "Upgrade" // DowngradeEventReason The name of the downgrade event DowngradeEventReason = "Downgrade" // RequeueEventReason The name of the requeue event RequeueEventReason = "Requeue" // FailedNameValidationEventReason The name of the event to validate spec.name and metadata.name of a component. FailedNameValidationEventReason = "FailedNameValidation" // Install represents the install-operation Install = operation("Install") // Upgrade represents the upgrade-operation Upgrade = operation("Upgrade") // Downgrade represents the downgrade-operation. Currently not supported. Downgrade = operation("Downgrade") // Delete represents the delete-operation Delete = operation("Delete") // Ignore represents the ignore-operation Ignore = operation("Ignore") )
Variables ¶
This section is empty.
Functions ¶
func NewComponentDeleteManager ¶
func NewComponentDeleteManager(componentClient componentInterface, helmClient helmClient) *componentDeleteManager
NewComponentDeleteManager creates a new instance of componentDeleteManager.
func NewComponentRequeueHandler ¶ added in v0.1.0
func NewComponentRequeueHandler(clientSet componentEcosystemInterface, recorder record.EventRecorder, namespace string) *componentRequeueHandler
NewComponentRequeueHandler creates a new component requeue handler.
Types ¶
type ComponentInstallManager ¶ added in v0.8.0
type ComponentInstallManager struct {
// contains filtered or unexported fields
}
ComponentInstallManager is a central unit in the process of handling the installation process of a custom dogu resource.
func NewComponentInstallManager ¶
func NewComponentInstallManager(componentClient componentInterface, helmClient helmClient, healthManager healthManager, recorder record.EventRecorder) *ComponentInstallManager
NewComponentInstallManager creates a new instance of ComponentInstallManager.
type ComponentManager ¶
type ComponentManager interface {
// contains filtered or unexported methods
}
ComponentManager abstracts the simple component operations in a k8s CES.
type ComponentReconciler ¶ added in v0.8.0
type ComponentReconciler struct {
// contains filtered or unexported fields
}
ComponentReconciler watches every Component object in the cluster and handles them accordingly.
func NewComponentReconciler ¶
func NewComponentReconciler(clientSet componentEcosystemInterface, helmClient helmClient, recorder record.EventRecorder, namespace string) *ComponentReconciler
NewComponentReconciler creates a new component reconciler.
func (*ComponentReconciler) Reconcile ¶ added in v0.8.0
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*ComponentReconciler) SetupWithManager ¶ added in v0.8.0
func (r *ComponentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ComponentUpgradeManager ¶ added in v0.8.0
type ComponentUpgradeManager struct {
// contains filtered or unexported fields
}
ComponentUpgradeManager is a central unit in the process of handling the upgrade process of a custom component resource.
func NewComponentUpgradeManager ¶
func NewComponentUpgradeManager(componentClient componentInterface, helmClient helmClient, healthManager healthManager, recorder record.EventRecorder) *ComponentUpgradeManager
NewComponentUpgradeManager creates a new instance of ComponentUpgradeManager.
type DefaultComponentManager ¶ added in v0.8.0
type DefaultComponentManager struct {
// contains filtered or unexported fields
}
DefaultComponentManager is a central unit in the process of handling component custom resources. The DefaultComponentManager creates, updates and deletes components.
func NewComponentManager ¶
func NewComponentManager(clientset componentInterface, helmClient helmClient, healthManager healthManager, recorder record.EventRecorder) *DefaultComponentManager
NewComponentManager creates a new instance of DefaultComponentManager.
func (*DefaultComponentManager) Delete ¶ added in v0.8.0
Delete deletes the given component resource.