Skip to content

Commit

Permalink
Deprecate v1alpha1
Browse files Browse the repository at this point in the history
Signed-off-by: lsviben <[email protected]>
  • Loading branch information
lsviben committed Dec 4, 2023
1 parent bd453af commit d95a7de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apis/object/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ type ObjectStatus struct {
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,kubernetes}
// +kubebuilder:deprecatedversion
// Deprecated: v1alpha1.Object is deprecated in favor of v1beta1.Object
type Object struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion package/crds/kubernetes.crossplane.io_objects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: A Object is an provider Kubernetes API type
description: 'A Object is an provider Kubernetes API type Deprecated: v1alpha1.Object
is deprecated in favor of v1beta1.Object'
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down

0 comments on commit d95a7de

Please sign in to comment.