Skip to content

Commit 397c9f2

Browse files
authored
Merge pull request #12254 from sbueringer/pr-deprecate-old-api-packages
✨ Deprecate v1alpha1 & v1beta1 API packages
2 parents 66c3258 + 9f4c54d commit 397c9f2

File tree

9 files changed

+19
-0
lines changed

9 files changed

+19
-0
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ linters:
254254
- linters:
255255
- staticcheck
256256
text: 'SA1019: .* is deprecated: This package will be removed in one of the next releases.'
257+
- linters:
258+
- staticcheck
259+
text: 'SA1019: .* is deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.'
257260
# Specific exclude rules for deprecated types that are still part of the codebase. These
258261
# should be removed as the referenced deprecated types are removed from the project.
259262
- linters:

api/addons/v1beta1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ limitations under the License.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/api/addons/v1beta2
1919
// +kubebuilder:object:generate=true
2020
// +groupName=addons.cluster.x-k8s.io
21+
//
22+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2123
package v1beta1

api/v1beta1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ limitations under the License.
1919
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/api/v1beta2
2020
// +kubebuilder:object:generate=true
2121
// +groupName=cluster.x-k8s.io
22+
//
23+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2224
package v1beta1

bootstrap/kubeadm/api/v1beta1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ limitations under the License.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1beta2
1919
// +kubebuilder:object:generate=true
2020
// +groupName=bootstrap.cluster.x-k8s.io
21+
//
22+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2123
package v1beta1

controlplane/kubeadm/api/v1beta1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ limitations under the License.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/controlplane/kubeadm/api/v1beta2
1919
// +kubebuilder:object:generate=true
2020
// +groupName=controlplane.cluster.x-k8s.io
21+
//
22+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2123
package v1beta1

exp/api/v1beta1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ limitations under the License.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/api/v1beta2
1919
// +kubebuilder:object:generate=true
2020
// +groupName=cluster.x-k8s.io
21+
//
22+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2123
package v1beta1

exp/ipam/api/v1alpha1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ limitations under the License.
1616

1717
// Package v1alpha1 contains API Schema definitions for the exp v1alpha1 IPAM API.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/ipam/api/v1beta2
19+
//
20+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
1921
package v1alpha1

exp/ipam/api/v1beta1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ limitations under the License.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/ipam/api/v1beta2
1919
// +kubebuilder:object:generate=true
2020
// +groupName=ipam.cluster.x-k8s.io
21+
//
22+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
2123
package v1beta1

exp/runtime/api/v1alpha1/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ limitations under the License.
1616

1717
// Package v1alpha1 contains the v1alpha1 implementation of ExtensionConfig.
1818
// +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/runtime/api/v1beta2
19+
//
20+
// Deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.
1921
package v1alpha1

0 commit comments

Comments
 (0)