// Uninstall uninstalls the specified release. Code ported from:
// https://github.com/helm/helm/blob/v3.4.2/cmd/helm/uninstall.go
Uninstall uninstalls the specified release.
// Uninstall uninstalls the specified release . Code ported from : // https : // github . com / helm / helm / blob / v3 . 4 . 2 / cmd / helm / uninstall . go
func Uninstall(params UninstallParameters) (storage.Release, error) {
	settings := cli.New()
	actionConfig, err := helmInit(settings, params.Namespace)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	client := action.NewUninstall(actionConfig)
	client.Timeout = helmTimeout
	res, err := client.Run(params.Release)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	rel, err := storage.NewRelease(res.Release)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return rel, nil
}
func Uninstall ( params UninstallParameters ) ( storage . Release , error ) { settings := cli . New ( ) actionConfig , err := helmInit ( settings , params . Namespace ) if err != nil { return nil , trace . Wrap ( err ) } client := action . NewUninstall ( actionConfig ) client . Timeout = helmTimeout res , err := client . Run ( params . Release ) if err != nil { return nil , trace . Wrap ( err ) } rel , err := storage . NewRelease ( res . Release ) if err != nil { return nil , trace . Wrap ( err ) } return rel , nil }
Uninstall uninstalls the specified release.
Uninstall uninstalls the specified release .