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

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-garg authored and oscerd committed Jan 18, 2018
1 parent ed09620 commit d96f6a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/schemagen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d96f6a1

Please sign in to comment.