@@ -39,16 +39,29 @@ import (
39
39
// NameSystems returns the name system used by the generators in this package.
40
40
func NameSystems () namer.NameSystems {
41
41
pluralExceptions := map [string ]string {
42
- "Endpoints" : "Endpoints" ,
42
+ "Endpoints" : "Endpoints" ,
43
+ "SecurityContextConstraints" : "SecurityContextConstraints" ,
43
44
}
44
45
lowercaseNamer := namer .NewAllLowercasePluralNamer (pluralExceptions )
45
46
46
47
publicNamer := & ExceptionNamer {
47
48
Exceptions : map [string ]string {
48
- // these exceptions are used to deconflict the generated code
49
- // you can put your fully qualified package like
50
- // to generate a name that doesn't conflict with your group.
51
- // "k8s.io/apis/events/v1alpha1.Event": "EventResource"
49
+ // these exceptions are used to deconflict the generated code
50
+ // you can put your fully qualified package like
51
+ // to generate a name that doesn't conflict with your group.
52
+ // "k8s.io/apis/events/v1alpha1.Event": "EventResource"
53
+ "github.com/openshift/origin/pkg/build/apis/build/v1.Build" : "BuildResource" ,
54
+ "github.com/openshift/origin/pkg/build/apis/build.Build" : "BuildResource" ,
55
+ "github.com/openshift/origin/pkg/image/apis/image/v1.Image" : "ImageResource" ,
56
+ "github.com/openshift/origin/pkg/image/apis/image.Image" : "ImageResource" ,
57
+ "github.com/openshift/origin/pkg/project/apis/project/v1.Project" : "ProjectResource" ,
58
+ "github.com/openshift/origin/pkg/project/apis/project.Project" : "ProjectResource" ,
59
+ "github.com/openshift/origin/pkg/route/apis/route/v1.Route" : "RouteResource" ,
60
+ "github.com/openshift/origin/pkg/route/apis/route.Route" : "RouteResource" ,
61
+ "github.com/openshift/origin/pkg/template/apis/template/v1.Template" : "TemplateResource" ,
62
+ "github.com/openshift/origin/pkg/template/apis/template.Template" : "TemplateResource" ,
63
+ "github.com/openshift/origin/pkg/user/apis/user/v1.User" : "UserResource" ,
64
+ "github.com/openshift/origin/pkg/user/apis/user.User" : "UserResource" ,
52
65
},
53
66
KeyFunc : func (t * types.Type ) string {
54
67
return t .Name .Package + "." + t .Name .Name
@@ -57,10 +70,22 @@ func NameSystems() namer.NameSystems {
57
70
}
58
71
privateNamer := & ExceptionNamer {
59
72
Exceptions : map [string ]string {
60
- // these exceptions are used to deconflict the generated code
61
- // you can put your fully qualified package like
62
- // to generate a name that doesn't conflict with your group.
63
- // "k8s.io/apis/events/v1alpha1.Event": "eventResource"
73
+ // these exceptions are used to deconflict the generated code
74
+ // you can put your fully qualified package like
75
+ // to generate a name that doesn't conflict with your group.
76
+ // "k8s.io/apis/events/v1alpha1.Event": "eventResource"
77
+ "github.com/openshift/origin/pkg/build/apis/build/v1.Build" : "buildResource" ,
78
+ "github.com/openshift/origin/pkg/build/apis/build.Build" : "buildResource" ,
79
+ "github.com/openshift/origin/pkg/image/apis/image/v1.Image" : "imageResource" ,
80
+ "github.com/openshift/origin/pkg/image/apis/image.Image" : "imageResource" ,
81
+ "github.com/openshift/origin/pkg/project/apis/project/v1.Project" : "projectResource" ,
82
+ "github.com/openshift/origin/pkg/project/apis/project.Project" : "projectResource" ,
83
+ "github.com/openshift/origin/pkg/route/apis/route/v1.Route" : "routeResource" ,
84
+ "github.com/openshift/origin/pkg/route/apis/route.Route" : "routeResource" ,
85
+ "github.com/openshift/origin/pkg/template/apis/template/v1.Template" : "templateResource" ,
86
+ "github.com/openshift/origin/pkg/template/apis/template.Template" : "templateResource" ,
87
+ "github.com/openshift/origin/pkg/user/apis/user/v1.User" : "userResource" ,
88
+ "github.com/openshift/origin/pkg/user/apis/user.User" : "userResource" ,
64
89
},
65
90
KeyFunc : func (t * types.Type ) string {
66
91
return t .Name .Package + "." + t .Name .Name
0 commit comments