Skip to content

Commit f5d8954

Browse files
authored
Merge pull request #400 from Fedosin/deprecate-v1alpha1
⚠️ Deprecate v1alpha1
2 parents 986ff0e + cd0d141 commit f5d8954

9 files changed

+44
-12
lines changed

api/v1alpha1/bootstrapprovider_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ type BootstrapProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:deprecatedversion
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
3738

3839
// BootstrapProvider is the Schema for the bootstrapproviders API.
40+
//
41+
// Deprecated: This type will be removed in one of the next releases.
3942
type BootstrapProvider struct {
4043
metav1.TypeMeta `json:",inline"`
4144
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -47,6 +50,8 @@ type BootstrapProvider struct {
4750
// +kubebuilder:object:root=true
4851

4952
// BootstrapProviderList contains a list of BootstrapProvider.
53+
//
54+
// Deprecated: This type will be removed in one of the next releases.
5055
type BootstrapProviderList struct {
5156
metav1.TypeMeta `json:",inline"`
5257
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha1/controlplaneprovider_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ type ControlPlaneProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:deprecatedversion
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
3738

3839
// ControlPlaneProvider is the Schema for the controlplaneproviders API.
40+
//
41+
// Deprecated: This type will be removed in one of the next releases.
3942
type ControlPlaneProvider struct {
4043
metav1.TypeMeta `json:",inline"`
4144
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -47,6 +50,8 @@ type ControlPlaneProvider struct {
4750
// +kubebuilder:object:root=true
4851

4952
// ControlPlaneProviderList contains a list of ControlPlaneProvider.
53+
//
54+
// Deprecated: This type will be removed in one of the next releases.
5055
type ControlPlaneProviderList struct {
5156
metav1.TypeMeta `json:",inline"`
5257
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha1/coreprovider_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ type CoreProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:deprecatedversion
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
3738

3839
// CoreProvider is the Schema for the coreproviders API.
40+
//
41+
// Deprecated: This type will be removed in one of the next releases.
3942
type CoreProvider struct {
4043
metav1.TypeMeta `json:",inline"`
4144
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -47,6 +50,8 @@ type CoreProvider struct {
4750
// +kubebuilder:object:root=true
4851

4952
// CoreProviderList contains a list of CoreProvider.
53+
//
54+
// Deprecated: This type will be removed in one of the next releases.
5055
type CoreProviderList struct {
5156
metav1.TypeMeta `json:",inline"`
5257
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha1/infrastructureprovider_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ type InfrastructureProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:deprecatedversion
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
3738

3839
// InfrastructureProvider is the Schema for the infrastructureproviders API.
40+
//
41+
// Deprecated: This type will be removed in one of the next releases.
3942
type InfrastructureProvider struct {
4043
metav1.TypeMeta `json:",inline"`
4144
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -47,6 +50,8 @@ type InfrastructureProvider struct {
4750
// +kubebuilder:object:root=true
4851

4952
// InfrastructureProviderList contains a list of InfrastructureProvider.
53+
//
54+
// Deprecated: This type will be removed in one of the next releases.
5055
type InfrastructureProviderList struct {
5156
metav1.TypeMeta `json:",inline"`
5257
metav1.ListMeta `json:"metadata,omitempty"`

config/crd/bases/operator.cluster.x-k8s.io_bootstrapproviders.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ spec:
2323
- jsonPath: .status.conditions[?(@.type=='Ready')].status
2424
name: Ready
2525
type: string
26+
deprecated: true
2627
name: v1alpha1
2728
schema:
2829
openAPIV3Schema:
29-
description: BootstrapProvider is the Schema for the bootstrapproviders API.
30+
description: "BootstrapProvider is the Schema for the bootstrapproviders API.
31+
\n Deprecated: This type will be removed in one of the next releases."
3032
properties:
3133
apiVersion:
3234
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/operator.cluster.x-k8s.io_controlplaneproviders.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ spec:
2323
- jsonPath: .status.conditions[?(@.type=='Ready')].status
2424
name: Ready
2525
type: string
26+
deprecated: true
2627
name: v1alpha1
2728
schema:
2829
openAPIV3Schema:
29-
description: ControlPlaneProvider is the Schema for the controlplaneproviders
30-
API.
30+
description: "ControlPlaneProvider is the Schema for the controlplaneproviders
31+
API. \n Deprecated: This type will be removed in one of the next releases."
3132
properties:
3233
apiVersion:
3334
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/operator.cluster.x-k8s.io_coreproviders.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ spec:
2323
- jsonPath: .status.conditions[?(@.type=='Ready')].status
2424
name: Ready
2525
type: string
26+
deprecated: true
2627
name: v1alpha1
2728
schema:
2829
openAPIV3Schema:
29-
description: CoreProvider is the Schema for the coreproviders API.
30+
description: "CoreProvider is the Schema for the coreproviders API. \n Deprecated:
31+
This type will be removed in one of the next releases."
3032
properties:
3133
apiVersion:
3234
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/operator.cluster.x-k8s.io_infrastructureproviders.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ spec:
2323
- jsonPath: .status.conditions[?(@.type=='Ready')].status
2424
name: Ready
2525
type: string
26+
deprecated: true
2627
name: v1alpha1
2728
schema:
2829
openAPIV3Schema:
29-
description: InfrastructureProvider is the Schema for the infrastructureproviders
30-
API.
30+
description: "InfrastructureProvider is the Schema for the infrastructureproviders
31+
API. \n Deprecated: This type will be removed in one of the next releases."
3132
properties:
3233
apiVersion:
3334
description: 'APIVersion defines the versioned schema of this representation

test/e2e/resources/full-chart-install.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,10 +1605,12 @@ spec:
16051605
- jsonPath: .status.conditions[?(@.type=='Ready')].status
16061606
name: Ready
16071607
type: string
1608+
deprecated: true
16081609
name: v1alpha1
16091610
schema:
16101611
openAPIV3Schema:
1611-
description: BootstrapProvider is the Schema for the bootstrapproviders API.
1612+
description: "BootstrapProvider is the Schema for the bootstrapproviders API.
1613+
\n Deprecated: This type will be removed in one of the next releases."
16121614
properties:
16131615
apiVersion:
16141616
description: 'APIVersion defines the versioned schema of this representation
@@ -4700,11 +4702,12 @@ spec:
47004702
- jsonPath: .status.conditions[?(@.type=='Ready')].status
47014703
name: Ready
47024704
type: string
4705+
deprecated: true
47034706
name: v1alpha1
47044707
schema:
47054708
openAPIV3Schema:
4706-
description: ControlPlaneProvider is the Schema for the controlplaneproviders
4707-
API.
4709+
description: "ControlPlaneProvider is the Schema for the controlplaneproviders
4710+
API. \n Deprecated: This type will be removed in one of the next releases."
47084711
properties:
47094712
apiVersion:
47104713
description: 'APIVersion defines the versioned schema of this representation
@@ -7799,10 +7802,12 @@ spec:
77997802
- jsonPath: .status.conditions[?(@.type=='Ready')].status
78007803
name: Ready
78017804
type: string
7805+
deprecated: true
78027806
name: v1alpha1
78037807
schema:
78047808
openAPIV3Schema:
7805-
description: CoreProvider is the Schema for the coreproviders API.
7809+
description: "CoreProvider is the Schema for the coreproviders API. \n Deprecated:
7810+
This type will be removed in one of the next releases."
78067811
properties:
78077812
apiVersion:
78087813
description: 'APIVersion defines the versioned schema of this representation
@@ -10894,11 +10899,12 @@ spec:
1089410899
- jsonPath: .status.conditions[?(@.type=='Ready')].status
1089510900
name: Ready
1089610901
type: string
10902+
deprecated: true
1089710903
name: v1alpha1
1089810904
schema:
1089910905
openAPIV3Schema:
10900-
description: InfrastructureProvider is the Schema for the infrastructureproviders
10901-
API.
10906+
description: "InfrastructureProvider is the Schema for the infrastructureproviders
10907+
API. \n Deprecated: This type will be removed in one of the next releases."
1090210908
properties:
1090310909
apiVersion:
1090410910
description: 'APIVersion defines the versioned schema of this representation

0 commit comments

Comments
 (0)