Skip to content

Commit bfe3706

Browse files
thockink8s-publishing-bot
authored andcommitted
Don't embed plural exceptions in tools
Kubernetes-commit: df7f5fca27fce282fb4815aa0464ff4797fd6bbe
1 parent c9df80e commit bfe3706

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

cmd/client-gen/args/args.go

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func New() *Args {
6969
ClientsetAPIPath: "/apis",
7070
ClientsetOnly: false,
7171
FakeClient: true,
72-
PluralExceptions: []string{"Endpoints:Endpoints"},
7372
ApplyConfigurationPackage: "",
7473
}
7574
}

cmd/informer-gen/args/args.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ type Args struct {
4040
// New returns default arguments for the generator.
4141
func New() *Args {
4242
return &Args{
43-
SingleDirectory: false,
44-
PluralExceptions: []string{"Endpoints:Endpoints"},
43+
SingleDirectory: false,
4544
}
4645
}
4746

cmd/lister-gen/args/args.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ type Args struct {
3535

3636
// New returns default arguments for the generator.
3737
func New() *Args {
38-
return &Args{
39-
PluralExceptions: []string{"Endpoints:Endpoints"},
40-
}
38+
return &Args{}
4139
}
4240

4341
// AddFlags add the generator flags to the flag set.

0 commit comments

Comments
 (0)