diff --git a/pkg/apis/acme/v1alpha2/const.go b/internal/apis/acme/v1alpha2/const.go similarity index 100% rename from pkg/apis/acme/v1alpha2/const.go rename to internal/apis/acme/v1alpha2/const.go diff --git a/pkg/apis/acme/v1alpha2/types.go b/internal/apis/acme/v1alpha2/types.go similarity index 100% rename from pkg/apis/acme/v1alpha2/types.go rename to internal/apis/acme/v1alpha2/types.go diff --git a/pkg/apis/acme/v1alpha2/types_challenge.go b/internal/apis/acme/v1alpha2/types_challenge.go similarity index 100% rename from pkg/apis/acme/v1alpha2/types_challenge.go rename to internal/apis/acme/v1alpha2/types_challenge.go diff --git a/pkg/apis/acme/v1alpha2/types_issuer.go b/internal/apis/acme/v1alpha2/types_issuer.go similarity index 100% rename from pkg/apis/acme/v1alpha2/types_issuer.go rename to internal/apis/acme/v1alpha2/types_issuer.go diff --git a/pkg/apis/acme/v1alpha2/types_order.go b/internal/apis/acme/v1alpha2/types_order.go similarity index 100% rename from pkg/apis/acme/v1alpha2/types_order.go rename to internal/apis/acme/v1alpha2/types_order.go diff --git a/pkg/apis/acme/v1alpha2/zz_generated.deepcopy.go b/internal/apis/acme/v1alpha2/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/acme/v1alpha2/zz_generated.deepcopy.go rename to internal/apis/acme/v1alpha2/zz_generated.deepcopy.go diff --git a/pkg/apis/acme/v1alpha3/const.go b/internal/apis/acme/v1alpha3/const.go similarity index 100% rename from pkg/apis/acme/v1alpha3/const.go rename to internal/apis/acme/v1alpha3/const.go diff --git a/pkg/apis/acme/v1alpha3/types.go b/internal/apis/acme/v1alpha3/types.go similarity index 100% rename from pkg/apis/acme/v1alpha3/types.go rename to internal/apis/acme/v1alpha3/types.go diff --git a/pkg/apis/acme/v1alpha3/types_challenge.go b/internal/apis/acme/v1alpha3/types_challenge.go similarity index 100% rename from pkg/apis/acme/v1alpha3/types_challenge.go rename to internal/apis/acme/v1alpha3/types_challenge.go diff --git a/pkg/apis/acme/v1alpha3/types_issuer.go b/internal/apis/acme/v1alpha3/types_issuer.go similarity index 100% rename from pkg/apis/acme/v1alpha3/types_issuer.go rename to internal/apis/acme/v1alpha3/types_issuer.go diff --git a/pkg/apis/acme/v1alpha3/types_order.go b/internal/apis/acme/v1alpha3/types_order.go similarity index 100% rename from pkg/apis/acme/v1alpha3/types_order.go rename to internal/apis/acme/v1alpha3/types_order.go diff --git a/pkg/apis/acme/v1alpha3/zz_generated.deepcopy.go b/internal/apis/acme/v1alpha3/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/acme/v1alpha3/zz_generated.deepcopy.go rename to internal/apis/acme/v1alpha3/zz_generated.deepcopy.go diff --git a/pkg/apis/acme/v1beta1/const.go b/internal/apis/acme/v1beta1/const.go similarity index 100% rename from pkg/apis/acme/v1beta1/const.go rename to internal/apis/acme/v1beta1/const.go diff --git a/pkg/apis/acme/v1beta1/types.go b/internal/apis/acme/v1beta1/types.go similarity index 100% rename from pkg/apis/acme/v1beta1/types.go rename to internal/apis/acme/v1beta1/types.go diff --git a/pkg/apis/acme/v1beta1/types_challenge.go b/internal/apis/acme/v1beta1/types_challenge.go similarity index 100% rename from pkg/apis/acme/v1beta1/types_challenge.go rename to internal/apis/acme/v1beta1/types_challenge.go diff --git a/pkg/apis/acme/v1beta1/types_issuer.go b/internal/apis/acme/v1beta1/types_issuer.go similarity index 100% rename from pkg/apis/acme/v1beta1/types_issuer.go rename to internal/apis/acme/v1beta1/types_issuer.go diff --git a/pkg/apis/acme/v1beta1/types_order.go b/internal/apis/acme/v1beta1/types_order.go similarity index 100% rename from pkg/apis/acme/v1beta1/types_order.go rename to internal/apis/acme/v1beta1/types_order.go diff --git a/pkg/apis/acme/v1beta1/zz_generated.deepcopy.go b/internal/apis/acme/v1beta1/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/acme/v1beta1/zz_generated.deepcopy.go rename to internal/apis/acme/v1beta1/zz_generated.deepcopy.go diff --git a/pkg/apis/certmanager/v1alpha2/const.go b/internal/apis/certmanager/v1alpha2/const.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/const.go rename to internal/apis/certmanager/v1alpha2/const.go diff --git a/pkg/apis/certmanager/v1alpha2/generic_issuer.go b/internal/apis/certmanager/v1alpha2/generic_issuer.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/generic_issuer.go rename to internal/apis/certmanager/v1alpha2/generic_issuer.go diff --git a/pkg/apis/certmanager/v1alpha2/types.go b/internal/apis/certmanager/v1alpha2/types.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/types.go rename to internal/apis/certmanager/v1alpha2/types.go diff --git a/pkg/apis/certmanager/v1alpha2/types_certificate.go b/internal/apis/certmanager/v1alpha2/types_certificate.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/types_certificate.go rename to internal/apis/certmanager/v1alpha2/types_certificate.go diff --git a/pkg/apis/certmanager/v1alpha2/types_certificaterequest.go b/internal/apis/certmanager/v1alpha2/types_certificaterequest.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/types_certificaterequest.go rename to internal/apis/certmanager/v1alpha2/types_certificaterequest.go diff --git a/pkg/apis/certmanager/v1alpha2/types_issuer.go b/internal/apis/certmanager/v1alpha2/types_issuer.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/types_issuer.go rename to internal/apis/certmanager/v1alpha2/types_issuer.go diff --git a/pkg/apis/certmanager/v1alpha2/zz_generated.deepcopy.go b/internal/apis/certmanager/v1alpha2/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/certmanager/v1alpha2/zz_generated.deepcopy.go rename to internal/apis/certmanager/v1alpha2/zz_generated.deepcopy.go diff --git a/pkg/apis/certmanager/v1alpha3/const.go b/internal/apis/certmanager/v1alpha3/const.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/const.go rename to internal/apis/certmanager/v1alpha3/const.go diff --git a/pkg/apis/certmanager/v1alpha3/generic_issuer.go b/internal/apis/certmanager/v1alpha3/generic_issuer.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/generic_issuer.go rename to internal/apis/certmanager/v1alpha3/generic_issuer.go diff --git a/pkg/apis/certmanager/v1alpha3/types.go b/internal/apis/certmanager/v1alpha3/types.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/types.go rename to internal/apis/certmanager/v1alpha3/types.go diff --git a/pkg/apis/certmanager/v1alpha3/types_certificate.go b/internal/apis/certmanager/v1alpha3/types_certificate.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/types_certificate.go rename to internal/apis/certmanager/v1alpha3/types_certificate.go diff --git a/pkg/apis/certmanager/v1alpha3/types_certificaterequest.go b/internal/apis/certmanager/v1alpha3/types_certificaterequest.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/types_certificaterequest.go rename to internal/apis/certmanager/v1alpha3/types_certificaterequest.go diff --git a/pkg/apis/certmanager/v1alpha3/types_issuer.go b/internal/apis/certmanager/v1alpha3/types_issuer.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/types_issuer.go rename to internal/apis/certmanager/v1alpha3/types_issuer.go diff --git a/pkg/apis/certmanager/v1alpha3/zz_generated.deepcopy.go b/internal/apis/certmanager/v1alpha3/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/certmanager/v1alpha3/zz_generated.deepcopy.go rename to internal/apis/certmanager/v1alpha3/zz_generated.deepcopy.go diff --git a/pkg/apis/certmanager/v1beta1/const.go b/internal/apis/certmanager/v1beta1/const.go similarity index 100% rename from pkg/apis/certmanager/v1beta1/const.go rename to internal/apis/certmanager/v1beta1/const.go diff --git a/pkg/apis/certmanager/v1beta1/types.go b/internal/apis/certmanager/v1beta1/types.go similarity index 100% rename from pkg/apis/certmanager/v1beta1/types.go rename to internal/apis/certmanager/v1beta1/types.go diff --git a/pkg/apis/certmanager/v1beta1/types_certificate.go b/internal/apis/certmanager/v1beta1/types_certificate.go similarity index 100% rename from pkg/apis/certmanager/v1beta1/types_certificate.go rename to internal/apis/certmanager/v1beta1/types_certificate.go diff --git a/pkg/apis/certmanager/v1beta1/types_certificaterequest.go b/internal/apis/certmanager/v1beta1/types_certificaterequest.go similarity index 100% rename from pkg/apis/certmanager/v1beta1/types_certificaterequest.go rename to internal/apis/certmanager/v1beta1/types_certificaterequest.go diff --git a/pkg/apis/certmanager/v1beta1/types_issuer.go b/internal/apis/certmanager/v1beta1/types_issuer.go similarity index 100% rename from pkg/apis/certmanager/v1beta1/types_issuer.go rename to internal/apis/certmanager/v1beta1/types_issuer.go diff --git a/pkg/apis/certmanager/v1beta1/zz_generated.deepcopy.go b/internal/apis/certmanager/v1beta1/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/certmanager/v1beta1/zz_generated.deepcopy.go rename to internal/apis/certmanager/v1beta1/zz_generated.deepcopy.go diff --git a/pkg/apis/acme/v1alpha2/BUILD.bazel b/pkg/apis/acme/v1alpha2/BUILD.bazel deleted file mode 100644 index 62cd2144a..000000000 --- a/pkg/apis/acme/v1alpha2/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "const.go", - "doc.go", - "register.go", - "types.go", - "types_challenge.go", - "types_issuer.go", - "types_order.go", - "zz_generated.deepcopy.go", - ], - importpath = "github.com/jetstack/cert-manager/pkg/apis/acme/v1alpha2", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/acme:go_default_library", - "//pkg/apis/meta/v1:go_default_library", - "@io_k8s_api//core/v1:go_default_library", - "@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:go_default_library", - "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/runtime:go_default_library", - "@io_k8s_apimachinery//pkg/runtime/schema:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], - visibility = ["//visibility:public"], -) diff --git a/pkg/apis/acme/v1alpha2/doc.go b/pkg/apis/acme/v1alpha2/doc.go deleted file mode 100644 index 7b73fcfb3..000000000 --- a/pkg/apis/acme/v1alpha2/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1alpha2 is the v1alpha2 version of the API. -// +k8s:deepcopy-gen=package,register -// +groupName=acme.cert-manager.io -package v1alpha2 diff --git a/pkg/apis/acme/v1alpha2/register.go b/pkg/apis/acme/v1alpha2/register.go deleted file mode 100644 index a6df8c207..000000000 --- a/pkg/apis/acme/v1alpha2/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha2 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - - "github.com/jetstack/cert-manager/pkg/apis/acme" -) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: acme.GroupName, Version: "v1alpha2"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Order{}, - &OrderList{}, - &Challenge{}, - &ChallengeList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pkg/apis/acme/v1alpha3/BUILD.bazel b/pkg/apis/acme/v1alpha3/BUILD.bazel deleted file mode 100644 index df8b28715..000000000 --- a/pkg/apis/acme/v1alpha3/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "const.go", - "doc.go", - "register.go", - "types.go", - "types_challenge.go", - "types_issuer.go", - "types_order.go", - "zz_generated.deepcopy.go", - ], - importpath = "github.com/jetstack/cert-manager/pkg/apis/acme/v1alpha3", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/acme:go_default_library", - "//pkg/apis/meta/v1:go_default_library", - "@io_k8s_api//core/v1:go_default_library", - "@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:go_default_library", - "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/runtime:go_default_library", - "@io_k8s_apimachinery//pkg/runtime/schema:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], - visibility = ["//visibility:public"], -) diff --git a/pkg/apis/acme/v1alpha3/doc.go b/pkg/apis/acme/v1alpha3/doc.go deleted file mode 100644 index c543388fa..000000000 --- a/pkg/apis/acme/v1alpha3/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1alpha3 is the v1alpha3 version of the API. -// +k8s:deepcopy-gen=package,register -// +groupName=acme.cert-manager.io -package v1alpha3 diff --git a/pkg/apis/acme/v1alpha3/register.go b/pkg/apis/acme/v1alpha3/register.go deleted file mode 100644 index 9cfc49c64..000000000 --- a/pkg/apis/acme/v1alpha3/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha3 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - - "github.com/jetstack/cert-manager/pkg/apis/acme" -) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: acme.GroupName, Version: "v1alpha3"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Order{}, - &OrderList{}, - &Challenge{}, - &ChallengeList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pkg/apis/acme/v1beta1/BUILD.bazel b/pkg/apis/acme/v1beta1/BUILD.bazel deleted file mode 100644 index 7382f6c58..000000000 --- a/pkg/apis/acme/v1beta1/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "const.go", - "doc.go", - "register.go", - "types.go", - "types_challenge.go", - "types_issuer.go", - "types_order.go", - "zz_generated.deepcopy.go", - ], - importpath = "github.com/jetstack/cert-manager/pkg/apis/acme/v1beta1", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/acme:go_default_library", - "//pkg/apis/meta/v1:go_default_library", - "@io_k8s_api//core/v1:go_default_library", - "@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:go_default_library", - "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/runtime:go_default_library", - "@io_k8s_apimachinery//pkg/runtime/schema:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], - visibility = ["//visibility:public"], -) diff --git a/pkg/apis/acme/v1beta1/doc.go b/pkg/apis/acme/v1beta1/doc.go deleted file mode 100644 index 130055ebf..000000000 --- a/pkg/apis/acme/v1beta1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1beta1 is the v1beta1 version of the API. -// +k8s:deepcopy-gen=package,register -// +groupName=acme.cert-manager.io -package v1beta1 diff --git a/pkg/apis/acme/v1beta1/register.go b/pkg/apis/acme/v1beta1/register.go deleted file mode 100644 index 56131ba3c..000000000 --- a/pkg/apis/acme/v1beta1/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -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" - - "github.com/jetstack/cert-manager/pkg/apis/acme" -) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: acme.GroupName, Version: "v1beta1"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Order{}, - &OrderList{}, - &Challenge{}, - &ChallengeList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pkg/apis/certmanager/v1alpha2/BUILD.bazel b/pkg/apis/certmanager/v1alpha2/BUILD.bazel deleted file mode 100644 index f33e9e969..000000000 --- a/pkg/apis/certmanager/v1alpha2/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "const.go", - "doc.go", - "generic_issuer.go", - "register.go", - "types.go", - "types_certificate.go", - "types_certificaterequest.go", - "types_issuer.go", - "zz_generated.deepcopy.go", - ], - importpath = "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha2", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/acme/v1alpha2:go_default_library", - "//pkg/apis/certmanager:go_default_library", - "//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/runtime:go_default_library", - "@io_k8s_apimachinery//pkg/runtime/schema:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], - visibility = ["//visibility:public"], -) diff --git a/pkg/apis/certmanager/v1alpha2/doc.go b/pkg/apis/certmanager/v1alpha2/doc.go deleted file mode 100644 index 7c7a11344..000000000 --- a/pkg/apis/certmanager/v1alpha2/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1alpha2 is the v1alpha2 version of the API. -// +k8s:deepcopy-gen=package,register -// +groupName=cert-manager.io -// +groupGoName=Certmanager -package v1alpha2 diff --git a/pkg/apis/certmanager/v1alpha2/register.go b/pkg/apis/certmanager/v1alpha2/register.go deleted file mode 100644 index 40987ae47..000000000 --- a/pkg/apis/certmanager/v1alpha2/register.go +++ /dev/null @@ -1,62 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha2 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - - "github.com/jetstack/cert-manager/pkg/apis/certmanager" -) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: certmanager.GroupName, Version: "v1alpha2"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Certificate{}, - &CertificateList{}, - &Issuer{}, - &IssuerList{}, - &ClusterIssuer{}, - &ClusterIssuerList{}, - &CertificateRequest{}, - &CertificateRequestList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pkg/apis/certmanager/v1alpha3/BUILD.bazel b/pkg/apis/certmanager/v1alpha3/BUILD.bazel deleted file mode 100644 index 7311853e3..000000000 --- a/pkg/apis/certmanager/v1alpha3/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "const.go", - "doc.go", - "generic_issuer.go", - "register.go", - "types.go", - "types_certificate.go", - "types_certificaterequest.go", - "types_issuer.go", - "zz_generated.deepcopy.go", - ], - importpath = "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha3", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/acme/v1alpha3:go_default_library", - "//pkg/apis/certmanager:go_default_library", - "//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/runtime:go_default_library", - "@io_k8s_apimachinery//pkg/runtime/schema:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], - visibility = ["//visibility:public"], -) diff --git a/pkg/apis/certmanager/v1alpha3/doc.go b/pkg/apis/certmanager/v1alpha3/doc.go deleted file mode 100644 index 5e511903a..000000000 --- a/pkg/apis/certmanager/v1alpha3/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1alpha3 is the v1alpha3 version of the API. -// +k8s:deepcopy-gen=package,register -// +groupName=cert-manager.io -// +groupGoName=Certmanager -package v1alpha3 diff --git a/pkg/apis/certmanager/v1alpha3/register.go b/pkg/apis/certmanager/v1alpha3/register.go deleted file mode 100644 index 25ddaf806..000000000 --- a/pkg/apis/certmanager/v1alpha3/register.go +++ /dev/null @@ -1,62 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha3 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - - "github.com/jetstack/cert-manager/pkg/apis/certmanager" -) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: certmanager.GroupName, Version: "v1alpha3"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Certificate{}, - &CertificateList{}, - &Issuer{}, - &IssuerList{}, - &ClusterIssuer{}, - &ClusterIssuerList{}, - &CertificateRequest{}, - &CertificateRequestList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pkg/apis/certmanager/v1beta1/BUILD.bazel b/pkg/apis/certmanager/v1beta1/BUILD.bazel deleted file mode 100644 index 0b74e2ba7..000000000 --- a/pkg/apis/certmanager/v1beta1/BUILD.bazel +++ /dev/null @@ -1,39 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "const.go", - "doc.go", - "register.go", - "types.go", - "types_certificate.go", - "types_certificaterequest.go", - "types_issuer.go", - "zz_generated.deepcopy.go", - ], - importpath = "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1beta1", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/acme/v1beta1:go_default_library", - "//pkg/apis/certmanager:go_default_library", - "//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", - "@io_k8s_apimachinery//pkg/runtime:go_default_library", - "@io_k8s_apimachinery//pkg/runtime/schema:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], - visibility = ["//visibility:public"], -) diff --git a/pkg/apis/certmanager/v1beta1/doc.go b/pkg/apis/certmanager/v1beta1/doc.go deleted file mode 100644 index 4c156551a..000000000 --- a/pkg/apis/certmanager/v1beta1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1beta1 is the v1beta1 version of the API. -// +k8s:deepcopy-gen=package,register -// +groupName=cert-manager.io -// +groupGoName=Certmanager -package v1beta1 diff --git a/pkg/apis/certmanager/v1beta1/register.go b/pkg/apis/certmanager/v1beta1/register.go deleted file mode 100644 index 501016837..000000000 --- a/pkg/apis/certmanager/v1beta1/register.go +++ /dev/null @@ -1,62 +0,0 @@ -/* -Copyright 2020 The cert-manager Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -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" - - "github.com/jetstack/cert-manager/pkg/apis/certmanager" -) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: certmanager.GroupName, Version: "v1beta1"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Certificate{}, - &CertificateList{}, - &Issuer{}, - &IssuerList{}, - &ClusterIssuer{}, - &ClusterIssuerList{}, - &CertificateRequest{}, - &CertificateRequestList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -}