Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Shiming Zhang <[email protected]>
  • Loading branch information
wzshiming committed May 23, 2024
1 parent 4f59d60 commit 20013cc
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pkg/old/scheme/scheme.go: ./hack/gen_old_scheme.sh pkg/old/apis
pkg/old/apis: ./hack/clone_old_apis.sh go.mod
-rm -rf ./pkg/old/apis/*
./hack/clone_old_apis.sh $(shell cat go.mod | grep 'k8s.io/api v0.' | awk '{print $$2}' | awk -F. '{print $$2}')
./scripts/fix.sh

.PHONY: generate
generate: pkg/scheme/scheme.go
Expand Down

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

2 changes: 1 addition & 1 deletion pkg/old/apis/batch/v2alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package v2alpha1

import (
batchv1 "k8s.io/api/batch/v1"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/old/apis/batch/v2alpha1/zz_generated.deepcopy.go

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

1 change: 1 addition & 0 deletions pkg/old/apis/discovery/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion pkg/old/apis/settings/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1

import (
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/old/apis/settings/v1alpha1/zz_generated.deepcopy.go

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

12 changes: 6 additions & 6 deletions pkg/old/scheme/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ package scheme

// Don't edit this file directly. It is generated by gen_old_scheme.sh.
import (
settingsv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/settings/v1alpha1"
flowcontrolv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/flowcontrol/v1alpha1"
auditregistrationv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/auditregistration/v1alpha1"
discoveryv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/discovery/v1alpha1"
batchv2alpha1 "github.com/etcd-io/auger/pkg/old/apis/batch/v2alpha1"
discoveryv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/discovery/v1alpha1"
flowcontrolv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/flowcontrol/v1alpha1"
resourcev1alpha1 "github.com/etcd-io/auger/pkg/old/apis/resource/v1alpha1"
settingsv1alpha1 "github.com/etcd-io/auger/pkg/old/apis/settings/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
)

// AddToScheme adds all types of this clientset into the given scheme.
func AddToScheme(scheme *runtime.Scheme) {
_ = settingsv1alpha1.AddToScheme(scheme)
_ = flowcontrolv1alpha1.AddToScheme(scheme)
_ = auditregistrationv1alpha1.AddToScheme(scheme)
_ = discoveryv1alpha1.AddToScheme(scheme)
_ = batchv2alpha1.AddToScheme(scheme)
_ = discoveryv1alpha1.AddToScheme(scheme)
_ = flowcontrolv1alpha1.AddToScheme(scheme)
_ = resourcev1alpha1.AddToScheme(scheme)
_ = settingsv1alpha1.AddToScheme(scheme)
}

0 comments on commit 20013cc

Please sign in to comment.