mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-06 19:18:43 +00:00
Fixes a bug with resource.error watch events
Watch events need to have a type defined by k8s.io/apimachinery/pkg/watch to be properly interpreted. Fixes a bug where this was not the case
This commit is contained in:
parent
f4338dd839
commit
59a2c55e14
@ -257,7 +257,7 @@ func (s *Store) list(apiOp *types.APIRequest, schema *types.APISchema, client dy
|
|||||||
|
|
||||||
func returnErr(err error, c chan watch.Event) {
|
func returnErr(err error, c chan watch.Event) {
|
||||||
c <- watch.Event{
|
c <- watch.Event{
|
||||||
Type: "resource.error",
|
Type: watch.Error,
|
||||||
Object: &metav1.Status{
|
Object: &metav1.Status{
|
||||||
Message: err.Error(),
|
Message: err.Error(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user