From 438fa65e5256d06c5d478297ffd261c6b94856a5 Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Mon, 27 Jul 2026 18:26:28 -0400 Subject: [PATCH] Remove controller-runtime dependency from api This change removes the usage of the deprecated controller-runtime scheme builder and with it the entire controller-runtime dependency. Signed-off-by: Alvaro Aleman --- api/go.mod | 3 +-- api/go.sum | 20 -------------------- api/v1/bucket_types.go | 4 ---- api/v1/externalartifact_types.go | 4 ---- api/v1/gitrepository_types.go | 4 ---- api/v1/groupversion_info.go | 25 +++++++++++++++++++++++-- api/v1/helmchart_types.go | 4 ---- api/v1/helmrepository_types.go | 4 ---- api/v1/ocirepository_types.go | 4 ---- api/v1beta1/bucket_types.go | 4 ---- api/v1beta1/gitrepository_types.go | 4 ---- api/v1beta1/groupversion_info.go | 21 +++++++++++++++++++-- api/v1beta1/helmchart_types.go | 4 ---- api/v1beta1/helmrepository_types.go | 4 ---- api/v1beta2/bucket_types.go | 4 ---- api/v1beta2/gitrepository_types.go | 4 ---- api/v1beta2/groupversion_info.go | 23 +++++++++++++++++++++-- api/v1beta2/helmchart_types.go | 4 ---- api/v1beta2/helmrepository_types.go | 4 ---- api/v1beta2/ocirepository_types.go | 4 ---- 20 files changed, 64 insertions(+), 88 deletions(-) diff --git a/api/go.mod b/api/go.mod index 000b4a239..984db5c33 100644 --- a/api/go.mod +++ b/api/go.mod @@ -6,7 +6,6 @@ require ( github.com/fluxcd/pkg/apis/acl v0.10.0 github.com/fluxcd/pkg/apis/meta v1.30.0 k8s.io/apimachinery v0.36.1 - sigs.k8s.io/controller-runtime v0.24.1 ) require ( @@ -15,12 +14,12 @@ require ( github.com/json-iterator/go v1.1.12 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect + github.com/onsi/gomega v1.39.0 // indirect github.com/x448/float16 v0.8.4 // indirect go.yaml.in/yaml/v2 v2.4.4 // indirect golang.org/x/net v0.55.0 // indirect golang.org/x/text v0.37.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect - k8s.io/api v0.36.1 // indirect k8s.io/klog/v2 v2.140.0 // indirect k8s.io/kube-openapi v0.0.0-20260603220949-865597e52e25 // indirect k8s.io/utils v0.0.0-20260507154919-ff6756f316d2 // indirect diff --git a/api/go.sum b/api/go.sum index f3ec6c92c..0c3e4a5ca 100644 --- a/api/go.sum +++ b/api/go.sum @@ -1,5 +1,3 @@ -github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE= -github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -12,13 +10,9 @@ github.com/fxamacker/cbor/v2 v2.9.2 h1:X4Ksno9+x3cz0TZv69ec1hxP/+tymuR8PXQJyDwfh github.com/fxamacker/cbor/v2 v2.9.2/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= -github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8= -github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -27,8 +21,6 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/onsi/ginkgo/v2 v2.27.4 h1:fcEcQW/A++6aZAZQNUmNjvA9PSOzefMJBerHJ4t8v8Y= -github.com/onsi/ginkgo/v2 v2.27.4/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo= github.com/onsi/gomega v1.39.0 h1:y2ROC3hKFmQZJNFeGAMeHZKkjBL65mIZcvrLQBF9k6Q= github.com/onsi/gomega v1.39.0/go.mod h1:ZCU1pkQcXDO5Sl9/VVEGlDyp+zm0m1cmeG5TOzLgdh4= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -46,24 +38,14 @@ go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= -golang.org/x/mod v0.35.0 h1:Ww1D637e6Pg+Zb2KrWfHQUnH2dQRLBQyAtpr/haaJeM= -golang.org/x/mod v0.35.0/go.mod h1:+GwiRhIInF8wPm+4AoT6L0FA1QWAad3OMdTRx4tFYlU= golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8= golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww= -golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= -golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= -golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= -golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/text v0.37.0 h1:Cqjiwd9eSg8e0QAkyCaQTNHFIIzWtidPahFWR83rTrc= golang.org/x/text v0.37.0/go.mod h1:a5sjxXGs9hsn/AJVwuElvCAo9v8QYLzvavO5z2PiM38= -golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c= -golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.36.1 h1:XbL/EMj8K2aJpJtePmqUyQMsM0D4QI2pvl7YKJ20FTY= -k8s.io/api v0.36.1/go.mod h1:KOWo4ey3TINlXjeHVuwB3i+tXXnu+UcwFBHlI/9dvEo= k8s.io/apimachinery v0.36.1 h1:G63Gjx2W+q0YD+72Vo8oY0nDnePVwnuzTmmy5ENrVSA= k8s.io/apimachinery v0.36.1/go.mod h1:ibYOR00vW/I1kzvi5SF0dRuJ52BvKtfvRdOn35GPQ+8= k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc= @@ -72,8 +54,6 @@ k8s.io/kube-openapi v0.0.0-20260603220949-865597e52e25 h1:mPMaPMpBij2V1Wv/fR+HW1 k8s.io/kube-openapi v0.0.0-20260603220949-865597e52e25/go.mod h1:V/QaCUYDa+0QpcHhVVc5l99Uz56wEMEXBSj9oCDkNDY= k8s.io/utils v0.0.0-20260507154919-ff6756f316d2 h1:wU4tMEhLGgIbLvXQb1cfN+EcM0wf7zC6CPF+C79jroc= k8s.io/utils v0.0.0-20260507154919-ff6756f316d2/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk= -sigs.k8s.io/controller-runtime v0.24.1 h1:miPEwrmirImAvgME1L9qebGHrOnGJoVmVdtOU9fRfo4= -sigs.k8s.io/controller-runtime v0.24.1/go.mod h1:vFkfY5fGt5xAC/sKb8IBFKgWPNKG9OUG29dR8Y2wImw= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= diff --git a/api/v1/bucket_types.go b/api/v1/bucket_types.go index 29117f151..398a453f9 100644 --- a/api/v1/bucket_types.go +++ b/api/v1/bucket_types.go @@ -277,7 +277,3 @@ type BucketList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []Bucket `json:"items"` } - -func init() { - SchemeBuilder.Register(&Bucket{}, &BucketList{}) -} diff --git a/api/v1/externalartifact_types.go b/api/v1/externalartifact_types.go index 24a87da1c..1acda5645 100644 --- a/api/v1/externalartifact_types.go +++ b/api/v1/externalartifact_types.go @@ -93,7 +93,3 @@ type ExternalArtifactList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []ExternalArtifact `json:"items"` } - -func init() { - SchemeBuilder.Register(&ExternalArtifact{}, &ExternalArtifactList{}) -} diff --git a/api/v1/gitrepository_types.go b/api/v1/gitrepository_types.go index 060b20ab7..eb8be2d32 100644 --- a/api/v1/gitrepository_types.go +++ b/api/v1/gitrepository_types.go @@ -384,7 +384,3 @@ type GitRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []GitRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&GitRepository{}, &GitRepositoryList{}) -} diff --git a/api/v1/groupversion_info.go b/api/v1/groupversion_info.go index b539a7947..b48dd9868 100644 --- a/api/v1/groupversion_info.go +++ b/api/v1/groupversion_info.go @@ -17,8 +17,9 @@ limitations under the License. package v1 import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" ) var ( @@ -26,8 +27,28 @@ var ( GroupVersion = schema.GroupVersion{Group: "source.toolkit.fluxcd.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. - SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme ) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(GroupVersion, + &Bucket{}, + &BucketList{}, + &ExternalArtifact{}, + &ExternalArtifactList{}, + &GitRepository{}, + &GitRepositoryList{}, + &HelmChart{}, + &HelmChartList{}, + &HelmRepository{}, + &HelmRepositoryList{}, + &OCIRepository{}, + &OCIRepositoryList{}, + ) + + metav1.AddToGroupVersion(scheme, GroupVersion) + return nil +} diff --git a/api/v1/helmchart_types.go b/api/v1/helmchart_types.go index d7735efea..6bf4d9ff9 100644 --- a/api/v1/helmchart_types.go +++ b/api/v1/helmchart_types.go @@ -223,7 +223,3 @@ type HelmChartList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []HelmChart `json:"items"` } - -func init() { - SchemeBuilder.Register(&HelmChart{}, &HelmChartList{}) -} diff --git a/api/v1/helmrepository_types.go b/api/v1/helmrepository_types.go index 88516ca8d..e69f28001 100644 --- a/api/v1/helmrepository_types.go +++ b/api/v1/helmrepository_types.go @@ -220,7 +220,3 @@ type HelmRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []HelmRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&HelmRepository{}, &HelmRepositoryList{}) -} diff --git a/api/v1/ocirepository_types.go b/api/v1/ocirepository_types.go index e8fd94c29..b24c259b4 100644 --- a/api/v1/ocirepository_types.go +++ b/api/v1/ocirepository_types.go @@ -291,7 +291,3 @@ type OCIRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []OCIRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&OCIRepository{}, &OCIRepositoryList{}) -} diff --git a/api/v1beta1/bucket_types.go b/api/v1beta1/bucket_types.go index e64321c9d..e904bfce9 100644 --- a/api/v1beta1/bucket_types.go +++ b/api/v1beta1/bucket_types.go @@ -214,7 +214,3 @@ type BucketList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []Bucket `json:"items"` } - -func init() { - SchemeBuilder.Register(&Bucket{}, &BucketList{}) -} diff --git a/api/v1beta1/gitrepository_types.go b/api/v1beta1/gitrepository_types.go index ce051028c..e3ba93435 100644 --- a/api/v1beta1/gitrepository_types.go +++ b/api/v1beta1/gitrepository_types.go @@ -285,7 +285,3 @@ type GitRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []GitRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&GitRepository{}, &GitRepositoryList{}) -} diff --git a/api/v1beta1/groupversion_info.go b/api/v1beta1/groupversion_info.go index 57c51fff6..8e4b5a097 100644 --- a/api/v1beta1/groupversion_info.go +++ b/api/v1beta1/groupversion_info.go @@ -17,8 +17,9 @@ limitations under the License. package v1beta1 import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" ) var ( @@ -26,8 +27,24 @@ var ( GroupVersion = schema.GroupVersion{Group: "source.toolkit.fluxcd.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. - SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme ) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(GroupVersion, + &Bucket{}, + &BucketList{}, + &GitRepository{}, + &GitRepositoryList{}, + &HelmChart{}, + &HelmChartList{}, + &HelmRepository{}, + &HelmRepositoryList{}, + ) + + metav1.AddToGroupVersion(scheme, GroupVersion) + return nil +} diff --git a/api/v1beta1/helmchart_types.go b/api/v1beta1/helmchart_types.go index 1aa9a7519..a9bc63242 100644 --- a/api/v1beta1/helmchart_types.go +++ b/api/v1beta1/helmchart_types.go @@ -252,7 +252,3 @@ type HelmChartList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []HelmChart `json:"items"` } - -func init() { - SchemeBuilder.Register(&HelmChart{}, &HelmChartList{}) -} diff --git a/api/v1beta1/helmrepository_types.go b/api/v1beta1/helmrepository_types.go index c81bbccc2..78dc65406 100644 --- a/api/v1beta1/helmrepository_types.go +++ b/api/v1beta1/helmrepository_types.go @@ -201,7 +201,3 @@ type HelmRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []HelmRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&HelmRepository{}, &HelmRepositoryList{}) -} diff --git a/api/v1beta2/bucket_types.go b/api/v1beta2/bucket_types.go index 107474ae3..815b0a514 100644 --- a/api/v1beta2/bucket_types.go +++ b/api/v1beta2/bucket_types.go @@ -290,7 +290,3 @@ type BucketList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []Bucket `json:"items"` } - -func init() { - SchemeBuilder.Register(&Bucket{}, &BucketList{}) -} diff --git a/api/v1beta2/gitrepository_types.go b/api/v1beta2/gitrepository_types.go index af443262e..3b1d8b356 100644 --- a/api/v1beta2/gitrepository_types.go +++ b/api/v1beta2/gitrepository_types.go @@ -305,7 +305,3 @@ type GitRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []GitRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&GitRepository{}, &GitRepositoryList{}) -} diff --git a/api/v1beta2/groupversion_info.go b/api/v1beta2/groupversion_info.go index 797e6c536..57bd5f0b3 100644 --- a/api/v1beta2/groupversion_info.go +++ b/api/v1beta2/groupversion_info.go @@ -17,8 +17,9 @@ limitations under the License. package v1beta2 import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" ) var ( @@ -26,8 +27,26 @@ var ( GroupVersion = schema.GroupVersion{Group: "source.toolkit.fluxcd.io", Version: "v1beta2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. - SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme ) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(GroupVersion, + &Bucket{}, + &BucketList{}, + &GitRepository{}, + &GitRepositoryList{}, + &HelmChart{}, + &HelmChartList{}, + &HelmRepository{}, + &HelmRepositoryList{}, + &OCIRepository{}, + &OCIRepositoryList{}, + ) + + metav1.AddToGroupVersion(scheme, GroupVersion) + return nil +} diff --git a/api/v1beta2/helmchart_types.go b/api/v1beta2/helmchart_types.go index bf37913ea..3472eaec4 100644 --- a/api/v1beta2/helmchart_types.go +++ b/api/v1beta2/helmchart_types.go @@ -235,7 +235,3 @@ type HelmChartList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []HelmChart `json:"items"` } - -func init() { - SchemeBuilder.Register(&HelmChart{}, &HelmChartList{}) -} diff --git a/api/v1beta2/helmrepository_types.go b/api/v1beta2/helmrepository_types.go index 88b25093d..9ec9e639a 100644 --- a/api/v1beta2/helmrepository_types.go +++ b/api/v1beta2/helmrepository_types.go @@ -216,7 +216,3 @@ type HelmRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []HelmRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&HelmRepository{}, &HelmRepositoryList{}) -} diff --git a/api/v1beta2/ocirepository_types.go b/api/v1beta2/ocirepository_types.go index d062bb248..c382af7b6 100644 --- a/api/v1beta2/ocirepository_types.go +++ b/api/v1beta2/ocirepository_types.go @@ -303,7 +303,3 @@ type OCIRepositoryList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []OCIRepository `json:"items"` } - -func init() { - SchemeBuilder.Register(&OCIRepository{}, &OCIRepositoryList{}) -}