Documentation
¶
Index ¶
- Constants
- func NewComponentDeleteManager(componentClient ComponentClient, helmClient HelmClient) *componentDeleteManager
- func NewComponentInstallManager(componentClient ecosystem.ComponentInterface, helmClient HelmClient) *componentInstallManager
- func NewComponentManager(clientset ecosystem.ComponentInterface, helmClient HelmClient, ...) *componentManager
- func NewComponentReconciler(componentClient ecosystem.ComponentInterface, helmClient HelmClient, ...) *componentReconciler
- func NewComponentUpgradeManager(componentClient ComponentClient, helmClient HelmClient) *componentUpgradeManager
- type ComponentClient
- type ComponentManager
- type DeleteManager
- type EventRecorder
- type HelmClient
- type InstallManager
- type UpgradeManager
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" // Install represents the install-operation Install = operation("Install") // Upgrade represents the upgrade-operation Upgrade = operation("Upgrade") // 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 ComponentClient, helmClient HelmClient) *componentDeleteManager
NewComponentDeleteManager creates a new instance of componentDeleteManager.
func NewComponentInstallManager ¶
func NewComponentInstallManager(componentClient ecosystem.ComponentInterface, helmClient HelmClient) *componentInstallManager
NewComponentInstallManager creates a new instance of componentInstallManager.
func NewComponentManager ¶
func NewComponentManager(clientset ecosystem.ComponentInterface, helmClient HelmClient, recorder record.EventRecorder) *componentManager
NewComponentManager creates a new instance of componentManager.
func NewComponentReconciler ¶
func NewComponentReconciler(componentClient ecosystem.ComponentInterface, helmClient HelmClient, recorder record.EventRecorder) *componentReconciler
NewComponentReconciler creates a new component reconciler.
func NewComponentUpgradeManager ¶
func NewComponentUpgradeManager(componentClient ComponentClient, helmClient HelmClient) *componentUpgradeManager
NewComponentUpgradeManager creates a new instance of componentUpgradeManager.
Types ¶
type ComponentClient ¶
type ComponentClient interface { ecosystem.ComponentInterface }
ComponentClient embeds the ecosystem.ComponentInterface interface for usage in this package.
type ComponentManager ¶
type ComponentManager interface { InstallManager DeleteManager UpgradeManager }
ComponentManager abstracts the simple component operations in a k8s CES.
type DeleteManager ¶
type DeleteManager interface { // Delete deletes a component resource. Delete(ctx context.Context, component *k8sv1.Component) error }
DeleteManager includes functionality to delete components in the cluster.
type EventRecorder ¶
type EventRecorder interface { record.EventRecorder }
EventRecorder embeds the record.EventRecorder interface for usage in this package.
type HelmClient ¶
type HelmClient interface { // InstallOrUpgrade takes a component and applies the corresponding helmChart. InstallOrUpgrade(ctx context.Context, component *k8sv1.Component) error // Uninstall removes the helmChart of the given component Uninstall(component *k8sv1.Component) error // ListDeployedReleases returns all deployed helm releases ListDeployedReleases() ([]*release.Release, error) }
HelmClient is an interface for managing components with helm.