Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

refactor: support schedule task #2271

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gen/kube/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func generate() error {
*/
APIs: []string{
"github.com/seal-io/walrus/pkg/apis/walruscore/v1",
"github.com/seal-io/walrus/pkg/apis/walrusutil/v1",
},
/*
Specify the package paths of the Extension APIs.
Expand Down Expand Up @@ -93,6 +94,7 @@ func generate() error {
*/
Webhooks: []string{
"github.com/seal-io/walrus/pkg/webhooks/walruscore",
"github.com/seal-io/walrus/pkg/webhooks/walrusutil",
},
/*
Specify the exceptions to the plural form.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ require (
github.com/google/go-containerregistry v0.19.1
github.com/google/uuid v1.6.0
github.com/gorilla/mux v1.8.1
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-version v1.6.0
github.com/hashicorp/hcl/v2 v2.19.1
github.com/hashicorp/terraform-config-inspect v0.0.0-20231204233900-a34142ec2a72
Expand Down Expand Up @@ -221,7 +222,6 @@ require (
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/henvic/httpretty v0.1.3 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

walrus "github.com/seal-io/walrus/pkg/apis/walrus/v1"
walruscore "github.com/seal-io/walrus/pkg/apis/walruscore/v1"
walrusutil "github.com/seal-io/walrus/pkg/apis/walrusutil/v1"
"github.com/seal-io/walrus/pkg/clients/clientset"
"github.com/seal-io/walrus/pkg/kubeclientset"
"github.com/seal-io/walrus/pkg/kubeclientset/review"
Expand All @@ -22,6 +23,7 @@ import (
var (
crdGetters = []_CustomResourceDefinitionsGetter{
walruscore.GetCustomResourceDefinitions,
walrusutil.GetCustomResourceDefinitions,
}
apiSvcGetters = []_APIServiceGetter{
walrus.GetAPIService,
Expand Down
14 changes: 14 additions & 0 deletions pkg/apis/walrusutil/v1/doc.go

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

Loading
Loading