diff --git a/.golangci.yml b/.golangci.yml index 0cf41c486614..3cf077bf3204 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -258,6 +258,9 @@ linters: - linters: - staticcheck text: 'SA1019: .* is deprecated: This package will be removed in one of the next releases.' + - linters: + - staticcheck + text: 'SA1019: .* is deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.' # Specific exclude rules for deprecated types that are still part of the codebase. These # should be removed as the referenced deprecated types are removed from the project. - linters: diff --git a/api/addons/v1beta1/doc.go b/api/addons/v1beta1/doc.go index b69848a138af..5be78eae564c 100644 --- a/api/addons/v1beta1/doc.go +++ b/api/addons/v1beta1/doc.go @@ -18,4 +18,6 @@ limitations under the License. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/api/addons/v1beta2 // +kubebuilder:object:generate=true // +groupName=addons.cluster.x-k8s.io +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1beta1 diff --git a/api/v1beta1/doc.go b/api/v1beta1/doc.go index c3bbbee3529a..57ee56096ffd 100644 --- a/api/v1beta1/doc.go +++ b/api/v1beta1/doc.go @@ -19,4 +19,6 @@ limitations under the License. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/api/v1beta2 // +kubebuilder:object:generate=true // +groupName=cluster.x-k8s.io +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1beta1 diff --git a/bootstrap/kubeadm/api/v1beta1/doc.go b/bootstrap/kubeadm/api/v1beta1/doc.go index 471bd3dbacd0..0907f017b730 100644 --- a/bootstrap/kubeadm/api/v1beta1/doc.go +++ b/bootstrap/kubeadm/api/v1beta1/doc.go @@ -18,4 +18,6 @@ limitations under the License. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1beta2 // +kubebuilder:object:generate=true // +groupName=bootstrap.cluster.x-k8s.io +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1beta1 diff --git a/controlplane/kubeadm/api/v1beta1/doc.go b/controlplane/kubeadm/api/v1beta1/doc.go index c433d1d0f525..c96e1819dbc7 100644 --- a/controlplane/kubeadm/api/v1beta1/doc.go +++ b/controlplane/kubeadm/api/v1beta1/doc.go @@ -18,4 +18,6 @@ limitations under the License. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/controlplane/kubeadm/api/v1beta2 // +kubebuilder:object:generate=true // +groupName=controlplane.cluster.x-k8s.io +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1beta1 diff --git a/exp/api/v1beta1/doc.go b/exp/api/v1beta1/doc.go index d187dc4b589d..56e8cf01235d 100644 --- a/exp/api/v1beta1/doc.go +++ b/exp/api/v1beta1/doc.go @@ -18,4 +18,6 @@ limitations under the License. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/api/v1beta2 // +kubebuilder:object:generate=true // +groupName=cluster.x-k8s.io +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1beta1 diff --git a/exp/ipam/api/v1alpha1/doc.go b/exp/ipam/api/v1alpha1/doc.go index 68a9b5973390..afab3620b6d5 100644 --- a/exp/ipam/api/v1alpha1/doc.go +++ b/exp/ipam/api/v1alpha1/doc.go @@ -16,4 +16,6 @@ limitations under the License. // Package v1alpha1 contains API Schema definitions for the exp v1alpha1 IPAM API. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/ipam/api/v1beta2 +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1alpha1 diff --git a/exp/ipam/api/v1beta1/doc.go b/exp/ipam/api/v1beta1/doc.go index fb7b40f24eff..00740bd6570f 100644 --- a/exp/ipam/api/v1beta1/doc.go +++ b/exp/ipam/api/v1beta1/doc.go @@ -18,4 +18,6 @@ limitations under the License. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/ipam/api/v1beta2 // +kubebuilder:object:generate=true // +groupName=ipam.cluster.x-k8s.io +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1beta1 diff --git a/exp/runtime/api/v1alpha1/doc.go b/exp/runtime/api/v1alpha1/doc.go index b2a519fa274e..05950a3d2ca7 100644 --- a/exp/runtime/api/v1alpha1/doc.go +++ b/exp/runtime/api/v1alpha1/doc.go @@ -16,4 +16,6 @@ limitations under the License. // Package v1alpha1 contains the v1alpha1 implementation of ExtensionConfig. // +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/runtime/api/v1beta2 +// +// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped. package v1alpha1