1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-27 19:05:09 +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:
Michael Bolot 2023-01-11 15:43:42 -06:00
parent f4338dd839
commit 59a2c55e14

View File

@ -257,7 +257,7 @@ func (s *Store) list(apiOp *types.APIRequest, schema *types.APISchema, client dy
func returnErr(err error, c chan watch.Event) {
c <- watch.Event{
Type: "resource.error",
Type: watch.Error,
Object: &metav1.Status{
Message: err.Error(),
},