Skip to content

Commit 74b2607

Browse files
amisevskJPinkney
authored andcommitted
Set v1alpha1 DevWorkspaces as served: false
This is a prerequisite to removing the v1alpha1 version from DevWorkspaces Signed-off-by: Angel Misevski <[email protected]>
1 parent c629f37 commit 74b2607

6 files changed

+6
-4
lines changed

crds/workspace.devfile.io_devworkspaces.v1beta1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4098,7 +4098,7 @@ spec:
40984098
- workspaceId
40994099
type: object
41004100
type: object
4101-
served: true
4101+
served: false
41024102
storage: false
41034103
- additionalPrinterColumns:
41044104
- JSONPath: .status.devworkspaceId

crds/workspace.devfile.io_devworkspaces.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4094,7 +4094,7 @@ spec:
40944094
- workspaceId
40954095
type: object
40964096
type: object
4097-
served: true
4097+
served: false
40984098
storage: false
40994099
subresources:
41004100
status: {}

crds/workspace.devfile.io_devworkspacetemplates.v1beta1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3891,7 +3891,7 @@ spec:
38913891
type: array
38923892
type: object
38933893
type: object
3894-
served: true
3894+
served: false
38953895
storage: false
38963896
- name: v1alpha2
38973897
schema:

crds/workspace.devfile.io_devworkspacetemplates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3889,7 +3889,7 @@ spec:
38893889
type: array
38903890
type: object
38913891
type: object
3892-
served: true
3892+
served: false
38933893
storage: false
38943894
- name: v1alpha2
38953895
schema:

pkg/apis/workspaces/v1alpha1/devworkspace_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const (
7777
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="The current workspace startup phase"
7878
// +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.ideUrl",description="Url endpoint for accessing workspace"
7979
// +kubebuilder:deprecatedversion
80+
// +kubebuilder:unservedversion
8081
type DevWorkspace struct {
8182
metav1.TypeMeta `json:",inline"`
8283
metav1.ObjectMeta `json:"metadata,omitempty"`

pkg/apis/workspaces/v1alpha1/devworkspacetemplate_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
// +k8s:openapi-gen=true
1111
// +kubebuilder:resource:path=devworkspacetemplates,scope=Namespaced,shortName=dwt
1212
// +kubebuilder:deprecatedversion
13+
// +kubebuilder:unservedversion
1314
type DevWorkspaceTemplate struct {
1415
metav1.TypeMeta `json:",inline"`
1516
metav1.ObjectMeta `json:"metadata,omitempty"`

0 commit comments

Comments
 (0)