Skip to content

Commit

Permalink
Merge pull request #400 from Fedosin/deprecate-v1alpha1
Browse files Browse the repository at this point in the history
⚠️ Deprecate v1alpha1
  • Loading branch information
k8s-ci-robot committed Jan 24, 2024
2 parents 986ff0e + cd0d141 commit f5d8954
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 12 deletions.
5 changes: 5 additions & 0 deletions api/v1alpha1/bootstrapprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ type BootstrapProviderStatus struct {
}

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

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

// BootstrapProviderList contains a list of BootstrapProvider.
//
// Deprecated: This type will be removed in one of the next releases.
type BootstrapProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/controlplaneprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ type ControlPlaneProviderStatus struct {
}

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

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

// ControlPlaneProviderList contains a list of ControlPlaneProvider.
//
// Deprecated: This type will be removed in one of the next releases.
type ControlPlaneProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/coreprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ type CoreProviderStatus struct {
}

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

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

// CoreProviderList contains a list of CoreProvider.
//
// Deprecated: This type will be removed in one of the next releases.
type CoreProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/infrastructureprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ type InfrastructureProviderStatus struct {
}

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

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

// InfrastructureProviderList contains a list of InfrastructureProvider.
//
// Deprecated: This type will be removed in one of the next releases.
type InfrastructureProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: BootstrapProvider is the Schema for the bootstrapproviders API.
description: "BootstrapProvider is the Schema for the bootstrapproviders API.
\n Deprecated: This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: ControlPlaneProvider is the Schema for the controlplaneproviders
API.
description: "ControlPlaneProvider is the Schema for the controlplaneproviders
API. \n Deprecated: This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: CoreProvider is the Schema for the coreproviders API.
description: "CoreProvider is the Schema for the coreproviders API. \n Deprecated:
This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: InfrastructureProvider is the Schema for the infrastructureproviders
API.
description: "InfrastructureProvider is the Schema for the infrastructureproviders
API. \n Deprecated: This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down
18 changes: 12 additions & 6 deletions test/e2e/resources/full-chart-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1605,10 +1605,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: BootstrapProvider is the Schema for the bootstrapproviders API.
description: "BootstrapProvider is the Schema for the bootstrapproviders API.
\n Deprecated: This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down Expand Up @@ -4700,11 +4702,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: ControlPlaneProvider is the Schema for the controlplaneproviders
API.
description: "ControlPlaneProvider is the Schema for the controlplaneproviders
API. \n Deprecated: This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down Expand Up @@ -7799,10 +7802,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: CoreProvider is the Schema for the coreproviders API.
description: "CoreProvider is the Schema for the coreproviders API. \n Deprecated:
This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down Expand Up @@ -10894,11 +10899,12 @@ spec:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: InfrastructureProvider is the Schema for the infrastructureproviders
API.
description: "InfrastructureProvider is the Schema for the infrastructureproviders
API. \n Deprecated: This type will be removed in one of the next releases."
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down

0 comments on commit f5d8954

Please sign in to comment.