helm

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCreateOperations = plugininstaller.ExecuteOperations{
		DealWithNsWhenInstall,
		InstallOrUpdate,
	}
	DefaultUpdateOperations = plugininstaller.ExecuteOperations{
		InstallOrUpdate,
	}
	DefaultDeleteOperations = plugininstaller.ExecuteOperations{
		Delete,
	}
	DefaultTerminateOperations = plugininstaller.TerminateOperations{
		Delete,
	}
)

Functions

func DealWithNsWhenInstall

func DealWithNsWhenInstall(options plugininstaller.RawOptions) error

DealWithNsWhenInstall will create namespace by input options

func Delete

func Delete(options plugininstaller.RawOptions) error

Delete will delete service base on input options

func GetPluginAllState

func GetPluginAllState(options plugininstaller.RawOptions) (statemanager.ResourceState, error)

GetPluginAllState will get the State of k8s Deployment, DaemonSet and StatefulSet resources

func InstallOrUpdate

func InstallOrUpdate(options plugininstaller.RawOptions) error

InstallOrUpdate will install or update service by input options

func SetDefaultConfig

func SetDefaultConfig(defaultConfig *Options) plugininstaller.MutableOperation

SetDefaultConfig will update options empty values base on import options

func Validate

Validate validates the options provided by the dtm-core.

Types

type Options

type Options struct {
	Repo  helm.Repo  `mapstructure:"repo"`
	Chart helm.Chart `mapstructure:"chart"`
}

Options is the struct for parameters used by the helm install config.

func NewOptions

func NewOptions(options plugininstaller.RawOptions) (*Options, error)

NewOptions create options by raw options

func (*Options) Encode

func (opts *Options) Encode() (map[string]interface{}, error)

func (*Options) FillDefaultValue added in v0.9.0

func (opts *Options) FillDefaultValue(defaultOpts *Options)

func (*Options) GetHelmParam

func (opts *Options) GetHelmParam() *helm.HelmParam

func (*Options) GetNamespace

func (opts *Options) GetNamespace() string

func (*Options) GetReleaseName

func (opts *Options) GetReleaseName() string

Jump to

Keyboard shortcuts

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