Skip to content

Commit

Permalink
informer-gen: use correct PackageName computed from input parameters
Browse files Browse the repository at this point in the history
Kubernetes-commit: 73dc5a96de2836bd7a7fab57241810af47c7e3ee
  • Loading branch information
munnerz authored and k8s-publishing-bot committed Jul 22, 2019
1 parent 9d064f9 commit 5ac21ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/informer-gen/generators/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@ func factoryInterfacePackage(basePackage string, boilerplate []byte, clientSetPa

func groupPackage(basePackage string, groupVersions clientgentypes.GroupVersions, boilerplate []byte) generator.Package {
packagePath := filepath.Join(basePackage, groupVersions.PackageName)
groupPkgName := strings.Split(string(groupVersions.Group), ".")[0]

return &generator.DefaultPackage{
PackageName: groupPkgName,
PackageName: groupVersions.PackageName,
PackagePath: packagePath,
HeaderText: boilerplate,
GeneratorFunc: func(c *generator.Context) (generators []generator.Generator) {
Expand Down

0 comments on commit 5ac21ed

Please sign in to comment.