Merge pull request #2068 from pengcong06/dev

init opClient
This commit is contained in:
KubeSphere CI Bot
2020-05-14 16:33:31 +08:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -40,7 +40,9 @@ const (
var GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
func AddToContainer(c *restful.Container, factory informers.InformerFactory, op op.Client) error {
if op == nil {
return nil
}
mimePatch := []string{restful.MIME_JSON, runtime.MimeMergePatchJson, runtime.MimeJsonPatchJson}
webservice := runtime.NewWebService(GroupVersion)
handler := newOpenpitrixHandler(factory, op)