mirror of
https://github.com/niusmallnan/steve.git
synced 2025-06-21 20:27:05 +00:00
Fix change events
This commit is contained in:
parent
1e5214b47e
commit
e2e87cda53
@ -50,7 +50,7 @@ func NewFactory(cfg *rest.Config, impersonate bool) (*Factory, error) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
watchClientCfg := rest.CopyConfig(cfg)
|
watchClientCfg := rest.CopyConfig(clientCfg)
|
||||||
watchClientCfg.Timeout = 30 * time.Minute
|
watchClientCfg.Timeout = 30 * time.Minute
|
||||||
|
|
||||||
md, err := metadata.NewForConfig(cfg)
|
md, err := metadata.NewForConfig(cfg)
|
||||||
|
@ -71,11 +71,8 @@ func toAPI(schema *types.APISchema, obj runtime.Object) types.APIObject {
|
|||||||
obj = moveToUnderscore(unstr)
|
obj = moveToUnderscore(unstr)
|
||||||
}
|
}
|
||||||
|
|
||||||
gvr := attributes.GVR(schema)
|
|
||||||
|
|
||||||
t := fmt.Sprintf("%s/%s/%s", gvr.Group, gvr.Version, gvr.Resource)
|
|
||||||
apiObject := types.APIObject{
|
apiObject := types.APIObject{
|
||||||
Type: t,
|
Type: schema.ID,
|
||||||
Object: obj,
|
Object: obj,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user