Skip to content

Commit

Permalink
Rename parseJSONSchemaProps -> parseCRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie committed May 1, 2018
1 parent 053d3ef commit 3facc66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/internal/codegen/parse/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
"text/template"
)

// parseJSONSchemaProps populates the CRD field of each Group.Version.Resource,
// parseCRDs populates the CRD field of each Group.Version.Resource,
// creating validations using the annotations on type fields.
func (b *APIs) parseJSONSchemaProps() {
func (b *APIs) parseCRDs() {
for _, group := range b.APIs.Groups {
for _, version := range group.Versions {
for _, resource := range version.Resources {
Expand Down
4 changes: 2 additions & 2 deletions cmd/internal/codegen/parse/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"github.com/kubernetes-sigs/kubebuilder/cmd/internal/codegen"
"github.com/pkg/errors"
rbacv1 "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/gengo/args"
"k8s.io/gengo/generator"
"k8s.io/gengo/types"
"k8s.io/apimachinery/pkg/apis/meta/v1"
)

type APIs struct {
Expand Down Expand Up @@ -63,7 +63,7 @@ func NewAPIs(context *generator.Context, arguments *args.GeneratorArgs) *APIs {
b.parseRBAC()
b.parseInformers()
b.parseAPIs()
b.parseJSONSchemaProps()
b.parseCRDs()
return b
}

Expand Down

0 comments on commit 3facc66

Please sign in to comment.