Documentation ¶
Index ¶
- Variables
- func AddRepo(r *repo.Entry) error
- func AddValueOptionsFlags(f *pflag.FlagSet, v *values.Options)
- func GetChartVersions(chartName string) ([]*semver.Version, error)
- func GetQuiteLog() action.DebugLog
- func GetValues(release string, cfg *Config) (map[string]interface{}, error)
- func GetVerboseLog() action.DebugLog
- func NewActionConfig(cfg *Config) (*action.Configuration, error)
- func OutputDiff(releaseA *release.Release, releaseB *release.Release, ...) error
- func ReleaseNotFound(err error) bool
- func RemoveRepo(r *repo.Entry) error
- func ValueOptsIsEmpty(valueOpts *values.Options) bool
- type Config
- type InstallOpts
- func (i *InstallOpts) GetInstalled(cfg *action.Configuration) (*release.Release, error)
- func (i *InstallOpts) Install(cfg *Config) (*release.Release, error)
- func (i *InstallOpts) RemoveRemainSecrets(cfg *action.Configuration) (int, error)
- func (i *InstallOpts) Uninstall(cfg *Config) error
- func (i *InstallOpts) Upgrade(cfg *Config) error
- type MappingResult
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReleaseNotDeployed = fmt.Errorf("release: not in deployed status")
Functions ¶
func AddValueOptionsFlags ¶
AddValueOptionsFlags add helm value flags
func GetChartVersions ¶
func GetQuiteLog ¶
func GetValues ¶ added in v0.6.0
GetValues gives an implementation of 'helm get values' for target release
func GetVerboseLog ¶
func NewActionConfig ¶
func NewActionConfig(cfg *Config) (*action.Configuration, error)
func OutputDiff ¶ added in v0.6.0
func OutputDiff(releaseA *release.Release, releaseB *release.Release, versionA, versionB string, out io.Writer) error
OutputDiff output the difference between different version for a chart
func ReleaseNotFound ¶ added in v0.6.0
func ValueOptsIsEmpty ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewFakeConfig ¶
func (*Config) SetNamespace ¶
type InstallOpts ¶
type InstallOpts struct { Name string Chart string Namespace string Wait bool Version string TryTimes int Login bool CreateNamespace bool ValueOpts *values.Options Timeout time.Duration Atomic bool DisableHooks bool ForceUninstall bool // for helm template DryRun *bool OutputDir string IncludeCRD bool }
func GetTemplateInstallOps ¶ added in v0.6.0
func GetTemplateInstallOps(name, chart, version, namespace string) *InstallOpts
GetTemplateInstallOps build a helm InstallOpts with dryrun to implement helm template
func (*InstallOpts) GetInstalled ¶
func (i *InstallOpts) GetInstalled(cfg *action.Configuration) (*release.Release, error)
GetInstalled gets helm package release info if installed.
func (*InstallOpts) Install ¶
func (i *InstallOpts) Install(cfg *Config) (*release.Release, error)
Install installs a Chart
func (*InstallOpts) RemoveRemainSecrets ¶ added in v0.6.0
func (i *InstallOpts) RemoveRemainSecrets(cfg *action.Configuration) (int, error)
func (*InstallOpts) Uninstall ¶
func (i *InstallOpts) Uninstall(cfg *Config) error
Uninstall uninstalls a Chart
func (*InstallOpts) Upgrade ¶
func (i *InstallOpts) Upgrade(cfg *Config) error
Upgrade will upgrade a Chart
type MappingResult ¶ added in v0.6.0
MappingResult to store result to diff
func ParseContent ¶ added in v0.6.0
func ParseContent(content string) (*MappingResult, error)
type Option ¶
type Option func(*cli.EnvSettings)
Click to show internal directories.
Click to hide internal directories.