1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-04 00:44:55 +00:00
This commit is contained in:
Darren Shepherd
2020-01-30 22:37:59 -07:00
parent 19c6732de0
commit 8b42d0aff8
71 changed files with 4024 additions and 507 deletions

View File

@@ -6,14 +6,13 @@ import (
"sync"
"time"
meta "k8s.io/apimachinery/pkg/api/meta"
"github.com/rancher/steve/pkg/attributes"
"github.com/rancher/steve/pkg/resources/schema"
"github.com/rancher/norman/pkg/types"
"github.com/rancher/steve/pkg/schema"
"github.com/rancher/steve/pkg/schemaserver/types"
"github.com/rancher/wrangler/pkg/generic"
"github.com/rancher/wrangler/pkg/merr"
"github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
schema2 "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/dynamic"
@@ -83,7 +82,7 @@ func (h *clusterCache) AddController(gvk schema2.GroupVersionKind, informer cach
h.typed[gvk] = informer
}
func validSchema(schema *types.Schema) bool {
func validSchema(schema *types.APISchema) bool {
canList := false
canWatch := false
for _, verb := range attributes.Verbs(schema) {