Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 62b3165

Browse files
committed
Added comment
1 parent 090c6bc commit 62b3165

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/schemagen/generate.go

+5
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ func (g *schemaGenerator) getStructProperties(t reflect.Type) map[string]JSONPro
382382
if strings.HasPrefix(path, "github.com/openshift/origin/pkg/") {
383383
groupPostfix = ".openshift.io"
384384
}
385+
386+
//Added a special case for SecurityContextConstraints and SecurityContextConstraintsList
387+
//Because its fetching "security.openshift.io/v1"
388+
//and "v1" is working with kubernetes-client
389+
385390
if t.Name() != "SecurityContextConstraints" && t.Name() != "SecurityContextConstraintsList" {
386391
apiVersion = apiGroup + groupPostfix + "/" + apiVersion
387392
}

0 commit comments

Comments
 (0)