Skip to content

Commit

Permalink
Removed "!ignore_autogenerated" build constraints in file templates
Browse files Browse the repository at this point in the history
The constraint caused the files to be not picked up by tools in
k8s.io/code-generator/cmd.

On-behalf-of: SAP [email protected]
Signed-off-by: Robert Vasek <[email protected]>
  • Loading branch information
gman0 committed Feb 7, 2025
1 parent 7b91b69 commit 8d09be8
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 45 deletions.
3 changes: 0 additions & 3 deletions pkg/internal/clientgen/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ func (c *ClientSet) WriteContent(w io.Writer) error {
}

var clientset = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.packageName}}
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/clientgen/fake_clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ func (c *FakeClientset) WriteContent(w io.Writer) error {
}

var fakeClientset = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package fake
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/clientgen/fake_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ func (g *FakeGroup) WriteContent(w io.Writer) error {
}

var fakeGroup = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package fake
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/clientgen/fake_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ func (c *FakeTypedClient) WriteContent(w io.Writer) error {
}

var fakeTypedClient = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package fake
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/clientgen/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ func (g *Group) WriteContent(w io.Writer) error {
}

var group = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.group.Version.PackageName}}
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/clientgen/scheme.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pkg/internal/clientgen/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ func (c *TypedClient) WriteContent(w io.Writer) error {
}

var typedClient = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.group.Version.PackageName}}
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/informergen/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ func (f *Factory) WriteContent(w io.Writer) error {
}

var sharedInformerFactoryStruct = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package informers
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/informergen/factoryinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ func (f *FactoryInterface) WriteContent(w io.Writer) error {
}

var externalSharedInformerFactoryInterface = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package internalinterfaces
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/informergen/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ func (g *Generic) WriteContent(w io.Writer) error {
}

var genericInformer = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package informers
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/informergen/groupinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ func (g GroupInterface) WriteContent(w io.Writer) error {
}

var groupInterface = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.packageName}}
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/informergen/informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ func (i *Informer) WriteContent(w io.Writer) error {
}

var informer = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.group.Version.PackageName}}
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/informergen/versioninterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ func (v *VersionInterface) WriteContent(w io.Writer) error {
}

var versionInterfaceTemplate = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.packageName}}
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/listergen/expansions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pkg/internal/listergen/lister.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ func (l *Lister) WriteContent(w io.Writer) error {
}

var lister = `
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by kcp code-generator. DO NOT EDIT.
package {{.group.Version.PackageName}}
Expand Down

0 comments on commit 8d09be8

Please sign in to comment.