1
0
mirror of https://github.com/rancher/types.git synced 2025-07-19 07:46:25 +00:00

ReplicationController: list only

This commit is contained in:
Alena Prokharchyk 2018-02-26 10:06:19 -08:00 committed by Darren Shepherd
parent d821f8109b
commit a78c745baa

View File

@ -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"`
}{})