From a78c745baa82a8fe5e709d0bb88fd3584be02401 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Mon, 26 Feb 2018 10:06:19 -0800 Subject: [PATCH] ReplicationController: list only --- apis/project.cattle.io/v3/schema/schema.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index dc1f1d53..419e7b48 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -1,6 +1,8 @@ package schema import ( + "net/http" + "github.com/rancher/norman/types" m "github.com/rancher/norman/types/mapper" "github.com/rancher/types/apis/project.cattle.io/v3" @@ -220,6 +222,8 @@ func replicationControllerTypes(schemas *types.Schemas) *types.Schemas { MustImport(&Version, v1.ReplicationControllerSpec{}, replicationControllerConfigOverride{}). MustImportAndCustomize(&Version, v1.ReplicationController{}, func(schema *types.Schema) { schema.BaseType = "workload" + schema.CollectionMethods = []string{http.MethodGet} + schema.ResourceMethods = []string{http.MethodGet} }, projectOverride{}, struct { PublicEndpoints string `json:"publicEndpoints" norman:"type=array[publicEndpoint],nocreate,noupdate"` }{})