// Executes tiller.UninstallRelease RPC. func (o *options) rpcDeleteRelease(rlsName string, rlc rls.ReleaseServiceClient, opts ...DeleteOption) (*rls.UninstallReleaseResponse, error) { if o.dryRun { // In the dry run case, just see if the release exists r, err := o.rpcGetReleaseContent(rlsName, rlc) if err != nil { return &rls.UninstallReleaseResponse{}, err } return &rls.UninstallReleaseResponse{Release: r.Release}, nil } return rlc.UninstallRelease(context.TODO(), &rls.UninstallReleaseRequest{Name: rlsName}) }
// Executes tiller.UninstallRelease RPC. func (o *options) rpcDeleteRelease(rlsName string, rlc rls.ReleaseServiceClient, opts ...DeleteOption) (*rls.UninstallReleaseResponse, error) { for _, opt := range opts { opt(o) } if o.dryRun { // In the dry run case, just see if the release exists r, err := o.rpcGetReleaseContent(rlsName, rlc) if err != nil { return &rls.UninstallReleaseResponse{}, err } return &rls.UninstallReleaseResponse{Release: r.Release}, nil } o.uninstallReq.Name = rlsName o.uninstallReq.DisableHooks = o.disableHooks return rlc.UninstallRelease(NewContext(), &o.uninstallReq) }