Skip to content

Commit

Permalink
[codegen] Updated codegen
Browse files Browse the repository at this point in the history
Signed-off by: Kendall Tauser <[email protected]>
  • Loading branch information
fire833 committed Aug 28, 2022
1 parent cd8f334 commit 4a681ce
Show file tree
Hide file tree
Showing 58 changed files with 747 additions and 633 deletions.
6 changes: 3 additions & 3 deletions gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
package morfic

// Generate listers
//go:generate lister-gen --input-dirs github.com/fire833/morfic/pkg/apis/net,github.com/fire833/morfic/pkg/apis/vpn,github.com/fire833/morfic/pkg/apis/firewall,github.com/fire833/morfic/pkg/apis/dns,github.com/fire833/morfic/pkg/apis/services,github.com/fire833/morfic/pkg/apis/sys --go-header-file hack/boilerplate.go.txt --output-package pkg/client/listers
//go:generate lister-gen --input-dirs github.com/fire833/morfic/pkg/apis/sys,github.com/fire833/morfic/pkg/apis/net,github.com/fire833/morfic/pkg/apis/vpn,github.com/fire833/morfic/pkg/apis/firewall,github.com/fire833/morfic/pkg/apis/dns,github.com/fire833/morfic/pkg/apis/services --go-header-file hack/boilerplate.go.txt --output-package pkg/client/listers

// Genarate clientset
//go:generate client-gen --input-dirs github.com/fire833/morfic/pkg/apis/net,github.com/fire833/morfic/pkg/apis/vpn,github.com/fire833/morfic/pkg/apis/firewall,github.com/fire833/morfic/pkg/apis/dns,github.com/fire833/morfic/pkg/apis/services,github.com/fire833/morfic/pkg/apis/sys --input "net/v1alpha1,vpn/v1alpha1,dns/v1alpha1,firewall/v1alpha1,services/v1alpha1,sys/v1alpha1" --fake-clientset --clientset-name versioned --input-base github.com/fire833/morfic/pkg/apis --go-header-file hack/boilerplate.go.txt --output-package pkg/client/clientset
//go:generate client-gen --input-dirs github.com/fire833/morfic/pkg/apis/sys,github.com/fire833/morfic/pkg/apis/net,github.com/fire833/morfic/pkg/apis/vpn,github.com/fire833/morfic/pkg/apis/firewall,github.com/fire833/morfic/pkg/apis/dns,github.com/fire833/morfic/pkg/apis/services --input "sys/v1alpha1,net/v1alpha1,vpn/v1alpha1,dns/v1alpha1,firewall/v1alpha1,services/v1alpha1" --fake-clientset --clientset-name versioned --input-base github.com/fire833/morfic/pkg/apis --go-header-file hack/boilerplate.go.txt --output-package pkg/client/clientset

// Generate informers
//go:generate informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/net,github.com/fire833/morfic/pkg/apis/vpn,github.com/fire833/morfic/pkg/apis/firewall,github.com/fire833/morfic/pkg/apis/dns,github.com/fire833/morfic/pkg/apis/services,github.com/fire833/morfic/pkg/apis/sys --go-header-file hack/boilerplate.go.txt --output-package pkg/client/informers --listers-package github.com/fire833/morfic/pkg/client/listers --versioned-clientset-package github.com/fire833/morfic/pkg/client/clientset/versioned --output-package pkg/client/informers
//go:generate informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/sys,github.com/fire833/morfic/pkg/apis/net,github.com/fire833/morfic/pkg/apis/vpn,github.com/fire833/morfic/pkg/apis/firewall,github.com/fire833/morfic/pkg/apis/dns,github.com/fire833/morfic/pkg/apis/services --go-header-file hack/boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --versioned-clientset-package github.com/fire833/morfic/pkg/client/clientset/versioned --output-package pkg/client/informers

// Generate CRDs
//go:generate controller-gen crd paths=./pkg/apis/... output:dir=./charts/morfic/crds
4 changes: 4 additions & 0 deletions pkg/apis/dns/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand All @@ -65,6 +66,7 @@ type DNSRecordList struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down Expand Up @@ -112,6 +114,7 @@ type DNSRecordStatus struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand All @@ -130,6 +133,7 @@ type DNSProviderList struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/firewall/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type Chain struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand All @@ -56,6 +57,7 @@ type TableList struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/net/link_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand All @@ -43,6 +44,7 @@ type LinkList struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/net/neighbor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand All @@ -43,6 +44,7 @@ type NeighborList struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/net/route_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand All @@ -43,6 +44,7 @@ type RouteTableList struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down Expand Up @@ -82,6 +84,7 @@ type RouteTableStatus struct {
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down
1 change: 1 addition & 0 deletions pkg/apis/sys/node_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=true
// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus

Expand Down
23 changes: 18 additions & 5 deletions pkg/client/clientset/versioned/clientset.go

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

29 changes: 18 additions & 11 deletions pkg/client/clientset/versioned/fake/clientset_generated.go

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

2 changes: 2 additions & 0 deletions pkg/client/clientset/versioned/fake/register.go

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

2 changes: 2 additions & 0 deletions pkg/client/clientset/versioned/scheme/register.go

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

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

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

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

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

22 changes: 22 additions & 0 deletions pkg/client/clientset/versioned/typed/sys/v1alpha1/doc.go

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

22 changes: 22 additions & 0 deletions pkg/client/clientset/versioned/typed/sys/v1alpha1/fake/doc.go

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

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

Loading

0 comments on commit 4a681ce

Please sign in to comment.