1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-24 21:08:03 +00:00

Adding Group, Version, Kind in Update proxy_store.go (#270)

* adding gvk completion to update method in proxy_store
This commit is contained in:
Felipe Gehrke
2024-09-13 15:19:58 -03:00
committed by GitHub
parent f02f3f9411
commit 99e479ba0f
5 changed files with 726 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ package partition
import (
"context"
"errors"
"fmt"
"os"
"reflect"
@@ -389,7 +390,7 @@ func ToAPIEvent(apiOp *types.APIRequest, schema *types.APISchema, event watch.Ev
if event.Type == watch.Error {
status, _ := event.Object.(*metav1.Status)
apiEvent.Error = fmt.Errorf(status.Message)
apiEvent.Error = errors.New(status.Message)
return apiEvent
}