cmd

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(cleanupOptions CleanupOptions, kubeConfig common.KubeConfig) error

Cleanup will delete all release data for in specified namespace and owner label. It will remove the Tiller server deployed as per namespace and owner label. It is also delete the Helm gv2 home directory which contains the Helm configuration. Helm v2 will be unusable after this operation.

func Convert

func Convert(convertOptions ConvertOptions, kubeConfig common.KubeConfig) error

Convert converts Helm 2 release into Helm 3 release. It maps the Helm v2 release versions of the release into Helm v3 equivalent and stores the release versions. The underlying Kubernetes resources are untouched. Note: The namespaces of each release version need to exist in the Kubernetes cluster. The Helm 2 release is retained by default, unless the '--delete-v2-releases' flag is set.

func Move

func Move(dryRun bool) error

Moves/copies v2 configuration to v2 configuration. It copies repository config, plugins and starters. It does not copy cache.

func NewRootCmd

func NewRootCmd(out io.Writer, args []string) *cobra.Command

Types

type CleanupOptions

type CleanupOptions struct {
	ConfigCleanup    bool
	DryRun           bool
	ReleaseName      string
	ReleaseCleanup   bool
	SkipConfirmation bool
	StorageType      string
	TillerCleanup    bool
	TillerLabel      string
	TillerNamespace  string
	TillerOutCluster bool
}

type ConvertOptions

type ConvertOptions struct {
	DeleteRelease         bool
	DryRun                bool
	MaxReleaseVersions    int
	ReleaseName           string
	StorageType           string
	TillerLabel           string
	TillerNamespace       string
	TillerOutCluster      bool
	IgnoreAlreadyMigrated bool
}

type EnvSettings

type EnvSettings struct {
	DryRun           bool
	KubeConfigFile   string
	KubeContext      string
	Label            string
	ReleaseStorage   string
	TillerNamespace  string
	TillerOutCluster bool
}

func New

func New() *EnvSettings

func (*EnvSettings) AddBaseFlags

func (s *EnvSettings) AddBaseFlags(fs *pflag.FlagSet)

AddBaseFlags binds base flags to the given flagset.

func (*EnvSettings) AddFlags

func (s *EnvSettings) AddFlags(fs *pflag.FlagSet)

AddFlags binds flags to the given flagset.

Jump to

Keyboard shortcuts

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