Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallOption ¶
type Manager ¶
type Manager interface { ReleaseName() string IsInstalled() bool IsUpgradeRequired() bool Sync(myContext context.Context) error InstallRelease(myContext context.Context, InstallOption ...InstallOption) (*rpb.Release, error) UpgradeRelease(myContext context.Context, UpgradeOption ...UpgradeOption) (*rpb.Release, *rpb.Release, error) UninstallRelease(myContext context.Context, UninstallOption ...UninstallOption) (*rpb.Release, error) RollbackRelease(myContext context.Context) error GetDeployedRelease() (*rpb.Release, error) GetActionConfig() *action.Configuration ReconcileRelease(myContext context.Context) (*rpb.Release, error) }
Manager manages a Helm release. It can install, upgrade, reconcile, and uninstall a release.
type ManagerFactory ¶
type ManagerFactory interface {
NewManager(r *unstructured.Unstructured, overrideValues map[string]string) (Manager, error)
}
ManagerFactory creates Managers that are specific to custom resources. It is used by the HelmOperatorReconciler during resource reconciliation, and it improves decoupling between reconciliation logic and the Helm backend components used to manage releases.
func NewManagerFactory ¶
func NewManagerFactory(mgr crmanager.Manager, chartDir string) ManagerFactory
NewManagerFactory returns a new Helm manager factory capable of installing and uninstalling releases.
type UninstallOption ¶
type UpgradeOption ¶
func ForceUpgrade ¶
func ForceUpgrade(force bool) UpgradeOption
Click to show internal directories.
Click to hide internal directories.