mirror of https://github.com/k3s-io/k3s
Switch api.Status to *api.Status in a bunch of places.
parent
f650337ec3
commit
a198bbb0ae
|
@ -190,7 +190,7 @@ func (op *Operation) StatusOrResult() (description interface{}, finished bool) {
|
|||
defer op.lock.Unlock()
|
||||
|
||||
if op.finished == nil {
|
||||
return api.Status{
|
||||
return &api.Status{
|
||||
Status: api.StatusWorking,
|
||||
Reason: api.ReasonTypeWorking,
|
||||
Details: &api.StatusDetails{ID: op.ID, Kind: "operation"},
|
||||
|
|
|
@ -77,7 +77,7 @@ func (rs *RegistryStorage) Create(obj interface{}) (<-chan interface{}, error) {
|
|||
// Delete asynchronously deletes the ReplicationController specified by its id.
|
||||
func (rs *RegistryStorage) Delete(id string) (<-chan interface{}, error) {
|
||||
return apiserver.MakeAsync(func() (interface{}, error) {
|
||||
return api.Status{Status: api.StatusSuccess}, rs.registry.DeleteController(id)
|
||||
return &api.Status{Status: api.StatusSuccess}, rs.registry.DeleteController(id)
|
||||
}), nil
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ func (rs *RegistryStorage) Create(obj interface{}) (<-chan interface{}, error) {
|
|||
|
||||
func (rs *RegistryStorage) Delete(id string) (<-chan interface{}, error) {
|
||||
return apiserver.MakeAsync(func() (interface{}, error) {
|
||||
return api.Status{Status: api.StatusSuccess}, rs.registry.DeletePod(id)
|
||||
return &api.Status{Status: api.StatusSuccess}, rs.registry.DeletePod(id)
|
||||
}), nil
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ func (rs *RegistryStorage) Delete(id string) (<-chan interface{}, error) {
|
|||
}
|
||||
return apiserver.MakeAsync(func() (interface{}, error) {
|
||||
rs.deleteExternalLoadBalancer(service)
|
||||
return api.Status{Status: api.StatusSuccess}, rs.registry.DeleteService(id)
|
||||
return &api.Status{Status: api.StatusSuccess}, rs.registry.DeleteService(id)
|
||||
}), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue