Skip to content

Commit

Permalink
Deprecate v1alpha3 and v1alpha4 apiVersions
Browse files Browse the repository at this point in the history
Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
  • Loading branch information
killianmuldoon committed Aug 4, 2023
1 parent 0fc3047 commit 5d138ea
Show file tree
Hide file tree
Showing 27 changed files with 50 additions and 12 deletions.
2 changes: 2 additions & 0 deletions apis/v1alpha3/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ limitations under the License.
// +kubebuilder:object:generate=true
// +groupName=infrastructure.cluster.x-k8s.io
// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-vsphere/apis/v1beta1
//
// Deprecated: This package will be removed in one of the next releases.
package v1alpha3
1 change: 1 addition & 0 deletions apis/v1alpha3/haproxyloadbalancer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type HAProxyLoadBalancerStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=haproxyloadbalancers,scope=Namespaced
// +kubebuilder:subresource:status

Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vspherecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type VSphereClusterStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vsphereclusters,scope=Namespaced,categories=cluster-api
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine"
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vsphereclusteridentity_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (c *VSphereClusterIdentity) SetConditions(conditions clusterv1.Conditions)
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vsphereclusteridentities,scope=Cluster,categories=cluster-api
// +kubebuilder:subresource:status

Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vspheredeploymentzone_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type VSphereDeploymentZoneStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspheredeploymentzones,scope=Cluster,categories=cluster-api
// +kubebuilder:subresource:status

Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vspherefailuredomain_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ type FailureDomainHosts struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspherefailuredomains,scope=Cluster,categories=cluster-api

// VSphereFailureDomain is the Schema for the vspherefailuredomains API
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vspheremachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ type VSphereMachineStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspheremachines,scope=Namespaced,categories=cluster-api
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this VSphereMachine belongs"
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vspheremachinetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type VSphereMachineTemplateSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspheremachinetemplates,scope=Namespaced,categories=cluster-api

// VSphereMachineTemplate is the Schema for the vspheremachinetemplates API
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha3/vspherevm_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ type VSphereVMStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspherevms,scope=Namespaced,categories=cluster-api
// +kubebuilder:subresource:status

Expand Down
4 changes: 4 additions & 0 deletions apis/v1alpha4/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ limitations under the License.
*/

// Package v1alpha4 contains API Schema definitions for the infrastructure v1alpha4 API group
//
// Deprecated: This package will be removed in one of the next releases.
// +kubebuilder:object:generate=true
// +groupName=infrastructure.cluster.x-k8s.io
// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-vsphere/apis/v1beta1
//
// Deprecated: This package will be removed in one of the next releases.
package v1alpha4
1 change: 1 addition & 0 deletions apis/v1alpha4/vspherecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type VSphereClusterStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vsphereclusters,scope=Namespaced,categories=cluster-api
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine"
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vsphereclusteridentity_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (c *VSphereClusterIdentity) SetConditions(conditions clusterv1.Conditions)
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vsphereclusteridentities,scope=Cluster,categories=cluster-api
// +kubebuilder:subresource:status

Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vsphereclustertemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type VSphereClusterTemplateSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vsphereclustertemplates,scope=Namespaced,categories=cluster-api

// VSphereClusterTemplate is the Schema for the vsphereclustertemplates API
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vspheredeploymentzone_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type VSphereDeploymentZoneStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspheredeploymentzones,scope=Cluster,categories=cluster-api
// +kubebuilder:subresource:status

Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vspherefailuredomain_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type FailureDomainHosts struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspherefailuredomains,scope=Cluster,categories=cluster-api

// VSphereFailureDomain is the Schema for the vspherefailuredomains API
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vspheremachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ type VSphereMachineStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspheremachines,scope=Namespaced,categories=cluster-api
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this VSphereMachine belongs"
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vspheremachinetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type VSphereMachineTemplateSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspheremachinetemplates,scope=Namespaced,categories=cluster-api

// VSphereMachineTemplate is the Schema for the vspheremachinetemplates API
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha4/vspherevm_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ type VSphereVMStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +kubebuilder:resource:path=vspherevms,scope=Namespaced,categories=cluster-api
// +kubebuilder:subresource:status

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ spec:
singular: haproxyloadbalancer
scope: Namespaced
versions:
- name: v1alpha3
- deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
description: 'HAProxyLoadBalancer is the Schema for the haproxyloadbalancers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
singular: vsphereclusteridentity
scope: Cluster
versions:
- name: v1alpha3
- deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
description: VSphereClusterIdentity defines the account to be used for reconciling
Expand Down Expand Up @@ -148,7 +149,8 @@ spec:
storage: false
subresources:
status: {}
- name: v1alpha4
- deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
description: VSphereClusterIdentity defines the account to be used for reconciling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -424,6 +425,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
singular: vsphereclustertemplate
scope: Namespaced
versions:
- name: v1alpha4
- deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
description: VSphereClusterTemplate is the Schema for the vsphereclustertemplates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
singular: vspheredeploymentzone
scope: Cluster
versions:
- name: v1alpha3
- deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
description: VSphereDeploymentZone is the Schema for the vspheredeploymentzones
Expand Down Expand Up @@ -120,7 +121,8 @@ spec:
storage: false
subresources:
status: {}
- name: v1alpha4
- deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
description: VSphereDeploymentZone is the Schema for the vspheredeploymentzones
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
singular: vspherefailuredomain
scope: Cluster
versions:
- name: v1alpha3
- deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
description: VSphereFailureDomain is the Schema for the vspherefailuredomains
Expand Down Expand Up @@ -137,7 +138,8 @@ spec:
type: object
served: true
storage: false
- name: v1alpha4
- deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
description: VSphereFailureDomain is the Schema for the vspherefailuredomains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -433,6 +434,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
singular: vspheremachinetemplate
scope: Namespaced
versions:
- name: v1alpha3
- deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
description: VSphereMachineTemplate is the Schema for the vspheremachinetemplates
Expand Down Expand Up @@ -393,7 +394,8 @@ spec:
type: object
served: true
storage: false
- name: v1alpha4
- deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
description: VSphereMachineTemplate is the Schema for the vspheremachinetemplates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
singular: vspherevm
scope: Namespaced
versions:
- name: v1alpha3
- deprecated: true
name: v1alpha3
schema:
openAPIV3Schema:
description: VSphereVM is the Schema for the vspherevms API
Expand Down Expand Up @@ -427,7 +428,8 @@ spec:
storage: false
subresources:
status: {}
- name: v1alpha4
- deprecated: true
name: v1alpha4
schema:
openAPIV3Schema:
description: VSphereVM is the Schema for the vspherevms API
Expand Down

0 comments on commit 5d138ea

Please sign in to comment.