// Rollback rolls back a release to the specified version. Code ported from:
// https://github.com/helm/helm/blob/v3.4.2/cmd/helm/rollback.go
Rollback rolls back a release to the specified version.
// Rollback rolls back a release to the specified version . Code ported from : // https : // github . com / helm / helm / blob / v3 . 4 . 2 / cmd / helm / rollback . go
func Rollback(params RollbackParameters) error {
	settings := cli.New()
	actionConfig, err := helmInit(settings, params.Namespace)
	if err != nil {
		return trace.Wrap(err)
	}
	client := action.NewRollback(actionConfig)
	client.Timeout = helmTimeout
	client.Version = params.Revision
	if err := client.Run(params.Release); err != nil {
		return trace.Wrap(err)
	}
	return nil
}
func Rollback ( params RollbackParameters ) error { settings := cli . New ( ) actionConfig , err := helmInit ( settings , params . Namespace ) if err != nil { return trace . Wrap ( err ) } client := action . NewRollback ( actionConfig ) client . Timeout = helmTimeout client . Version = params . Revision if err := client . Run ( params . Release ) ; err != nil { return trace . Wrap ( err ) } return nil }
Rollback rolls back a release to the specified version.
Rollback rolls back a release to the specified version .