Documentation ¶
Index ¶
- func IsReleaseNotFoundErr(err error) bool
- func Migrate2To3(ctx context.Context, helm2ReleaseName, helm3ReleaseName, helm3Namespace string, ...) error
- type Helm2ReleaseData
- type Helm3ReleaseData
- type MaintenanceHelper
- func (helper *MaintenanceHelper) BuildHelm2ResourcesInfos(releaseData *Helm2ReleaseData) ([]*resource.Info, error)
- func (helper *MaintenanceHelper) CheckHelm2StorageAvailable(ctx context.Context) (bool, error)
- func (helper *MaintenanceHelper) CheckHelm3StorageAvailable(ctx context.Context) (bool, error)
- func (helper *MaintenanceHelper) CreateHelm3ReleaseMetadataFromHelm2Release(ctx context.Context, release, namespace string, releaseData *Helm2ReleaseData) error
- func (helper *MaintenanceHelper) DeleteHelm2ReleaseMetadata(ctx context.Context, releaseName string) error
- func (helper *MaintenanceHelper) GetHelm2ReleaseData(ctx context.Context, releaseName string) (*Helm2ReleaseData, error)
- func (helper *MaintenanceHelper) IsHelm2ReleaseExist(ctx context.Context, releaseName string) (bool, error)
- func (helper *MaintenanceHelper) IsHelm3ReleaseExist(ctx context.Context, releaseName string) (bool, error)
- type MaintenanceHelperOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReleaseNotFoundErr ¶ added in v1.2.11
func Migrate2To3 ¶
func Migrate2To3(ctx context.Context, helm2ReleaseName, helm3ReleaseName, helm3Namespace string, maintenanceHelper *MaintenanceHelper) error
Types ¶
type Helm2ReleaseData ¶
type Helm3ReleaseData ¶
type MaintenanceHelper ¶
type MaintenanceHelper struct { KubeConfigOptions kube.KubeConfigOptions Helm2ReleaseStorageNamespace string Helm2ReleaseStorageType string // contains filtered or unexported fields }
func NewMaintenanceHelper ¶
func NewMaintenanceHelper(v3ActionConfig *v3_action.Configuration, opts MaintenanceHelperOptions) *MaintenanceHelper
func (*MaintenanceHelper) BuildHelm2ResourcesInfos ¶
func (helper *MaintenanceHelper) BuildHelm2ResourcesInfos(releaseData *Helm2ReleaseData) ([]*resource.Info, error)
func (*MaintenanceHelper) CheckHelm2StorageAvailable ¶
func (helper *MaintenanceHelper) CheckHelm2StorageAvailable(ctx context.Context) (bool, error)
func (*MaintenanceHelper) CheckHelm3StorageAvailable ¶
func (helper *MaintenanceHelper) CheckHelm3StorageAvailable(ctx context.Context) (bool, error)
func (*MaintenanceHelper) CreateHelm3ReleaseMetadataFromHelm2Release ¶
func (helper *MaintenanceHelper) CreateHelm3ReleaseMetadataFromHelm2Release(ctx context.Context, release, namespace string, releaseData *Helm2ReleaseData) error
func (*MaintenanceHelper) DeleteHelm2ReleaseMetadata ¶
func (helper *MaintenanceHelper) DeleteHelm2ReleaseMetadata(ctx context.Context, releaseName string) error
func (*MaintenanceHelper) GetHelm2ReleaseData ¶
func (helper *MaintenanceHelper) GetHelm2ReleaseData(ctx context.Context, releaseName string) (*Helm2ReleaseData, error)
func (*MaintenanceHelper) IsHelm2ReleaseExist ¶ added in v1.2.11
func (*MaintenanceHelper) IsHelm3ReleaseExist ¶ added in v1.2.11
type MaintenanceHelperOptions ¶
type MaintenanceHelperOptions struct { Helm2ReleaseStorageNamespace string Helm2ReleaseStorageType string KubeConfigOptions kube.KubeConfigOptions }
Click to show internal directories.
Click to hide internal directories.