diff --git a/Makefile b/Makefile index 63314dd..f765a15 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/pkg/old/apis/auditregistration/v1alpha1/zz_generated.deepcopy.go b/pkg/old/apis/auditregistration/v1alpha1/zz_generated.deepcopy.go index 621a19e..6418a27 100644 --- a/pkg/old/apis/auditregistration/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/old/apis/auditregistration/v1alpha1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/pkg/old/apis/batch/v2alpha1/types.go b/pkg/old/apis/batch/v2alpha1/types.go index 465e614..8234719 100644 --- a/pkg/old/apis/batch/v2alpha1/types.go +++ b/pkg/old/apis/batch/v2alpha1/types.go @@ -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" ) diff --git a/pkg/old/apis/batch/v2alpha1/zz_generated.deepcopy.go b/pkg/old/apis/batch/v2alpha1/zz_generated.deepcopy.go index 1b03f67..d238773 100644 --- a/pkg/old/apis/batch/v2alpha1/zz_generated.deepcopy.go +++ b/pkg/old/apis/batch/v2alpha1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/pkg/old/apis/discovery/v1alpha1/zz_generated.deepcopy.go b/pkg/old/apis/discovery/v1alpha1/zz_generated.deepcopy.go index 13e54d5..1333914 100644 --- a/pkg/old/apis/discovery/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/old/apis/discovery/v1alpha1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/pkg/old/apis/settings/v1alpha1/types.go b/pkg/old/apis/settings/v1alpha1/types.go index 8cc99d4..6642a83 100644 --- a/pkg/old/apis/settings/v1alpha1/types.go +++ b/pkg/old/apis/settings/v1alpha1/types.go @@ -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" ) diff --git a/pkg/old/apis/settings/v1alpha1/zz_generated.deepcopy.go b/pkg/old/apis/settings/v1alpha1/zz_generated.deepcopy.go index ed6c31a..c77d6eb 100644 --- a/pkg/old/apis/settings/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/old/apis/settings/v1alpha1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /*