Skip to content

Commit

Permalink
Remove old UpdateRecoveryStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Aug 3, 2018
1 parent 6da21a3 commit f2a9160
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions client/clientset/versioned/typed/stash/v1alpha1/util/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,6 @@ func SetRecoveryStats(c cs.StashV1alpha1Interface, recovery *api.Recovery, path
return out, err
}

func UpdateRecoveryStatus2(c cs.StashV1alpha1Interface, cur *api.Recovery, transform func(*api.RecoveryStatus) *api.RecoveryStatus, useSubresource ...bool) (*api.Recovery, error) {
if len(useSubresource) > 1 {
return nil, errors.Errorf("invalid value passed for useSubresource: %v", useSubresource)
}

mod := &api.Recovery{
TypeMeta: cur.TypeMeta,
ObjectMeta: cur.ObjectMeta,
Spec: cur.Spec,
Status: *transform(cur.Status.DeepCopy()),
}

if len(useSubresource) == 1 && useSubresource[0] {
return c.Recoveries(cur.Namespace).UpdateStatus(mod)
}

out, _, err := PatchRecoveryObject(c, cur, mod)
return out, err
}

func UpdateRecoveryStatus(
c cs.StashV1alpha1Interface,
in *api.Recovery,
Expand Down

0 comments on commit f2a9160

Please sign in to comment.