mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Make success status public so it will actually get sent to clients
This commit is contained in:
parent
bad4318b95
commit
6d3af1f8ff
@ -38,7 +38,7 @@ type RESTStorage interface {
|
|||||||
|
|
||||||
// Status is a return value for calls that don't return other objects
|
// Status is a return value for calls that don't return other objects
|
||||||
type Status struct {
|
type Status struct {
|
||||||
success bool
|
Success bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApiServer is an HTTPHandler that delegates to RESTStorage objects.
|
// ApiServer is an HTTPHandler that delegates to RESTStorage objects.
|
||||||
@ -195,7 +195,7 @@ func (server *ApiServer) handleREST(parts []string, url *url.URL, req *http.Requ
|
|||||||
server.error(err, w)
|
server.error(err, w)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
server.write(200, Status{success: true}, w)
|
server.write(200, Status{Success: true}, w)
|
||||||
return
|
return
|
||||||
case "PUT":
|
case "PUT":
|
||||||
if len(parts) != 2 {
|
if len(parts) != 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user