maintenance_helper

package
v1.2.26 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReleaseNotFoundErr added in v1.2.11

func IsReleaseNotFoundErr(err error) bool

func Migrate2To3

func Migrate2To3(ctx context.Context, helm2ReleaseName, helm3ReleaseName, helm3Namespace string, maintenanceHelper *MaintenanceHelper) error

Types

type Helm2ReleaseData

type Helm2ReleaseData struct {
	Release *v2_rspb.Release
}

type Helm3ReleaseData

type Helm3ReleaseData struct {
	Release *v3_rspb.Release
}

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 (helper *MaintenanceHelper) IsHelm2ReleaseExist(ctx context.Context, releaseName string) (bool, error)

func (*MaintenanceHelper) IsHelm3ReleaseExist added in v1.2.11

func (helper *MaintenanceHelper) IsHelm3ReleaseExist(ctx context.Context, releaseName string) (bool, error)

type MaintenanceHelperOptions

type MaintenanceHelperOptions struct {
	Helm2ReleaseStorageNamespace string
	Helm2ReleaseStorageType      string
	KubeConfigOptions            kube.KubeConfigOptions
}

Jump to

Keyboard shortcuts

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