From d96f6a1f3d1ff89437a031c220eec940817f0e57 Mon Sep 17 00:00:00 2001 From: Piyush Garg Date: Thu, 18 Jan 2018 20:06:44 +0530 Subject: [PATCH] Added comment --- pkg/schemagen/generate.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/schemagen/generate.go b/pkg/schemagen/generate.go index 3c167278e..183bdfd0d 100644 --- a/pkg/schemagen/generate.go +++ b/pkg/schemagen/generate.go @@ -382,6 +382,11 @@ func (g *schemaGenerator) getStructProperties(t reflect.Type) map[string]JSONPro if strings.HasPrefix(path, "github.com/openshift/origin/pkg/") { groupPostfix = ".openshift.io" } + + //Added a special case for SecurityContextConstraints and SecurityContextConstraintsList + //Because its fetching "security.openshift.io/v1" + //and "v1" is working with kubernetes-client + if t.Name() != "SecurityContextConstraints" && t.Name() != "SecurityContextConstraintsList" { apiVersion = apiGroup + groupPostfix + "/" + apiVersion }