Skip to content

Commit

Permalink
Set v1alpha1 DevWorkspaces as served: false
Browse files Browse the repository at this point in the history
This is a prerequisite to removing the v1alpha1 version from
DevWorkspaces

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk authored and JPinkney committed Oct 6, 2021
1 parent c629f37 commit 74b2607
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crds/workspace.devfile.io_devworkspaces.v1beta1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,7 @@ spec:
- workspaceId
type: object
type: object
served: true
served: false
storage: false
- additionalPrinterColumns:
- JSONPath: .status.devworkspaceId
Expand Down
2 changes: 1 addition & 1 deletion crds/workspace.devfile.io_devworkspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4094,7 +4094,7 @@ spec:
- workspaceId
type: object
type: object
served: true
served: false
storage: false
subresources:
status: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3891,7 +3891,7 @@ spec:
type: array
type: object
type: object
served: true
served: false
storage: false
- name: v1alpha2
schema:
Expand Down
2 changes: 1 addition & 1 deletion crds/workspace.devfile.io_devworkspacetemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3889,7 +3889,7 @@ spec:
type: array
type: object
type: object
served: true
served: false
storage: false
- name: v1alpha2
schema:
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/workspaces/v1alpha1/devworkspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const (
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="The current workspace startup phase"
// +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.ideUrl",description="Url endpoint for accessing workspace"
// +kubebuilder:deprecatedversion
// +kubebuilder:unservedversion
type DevWorkspace struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/workspaces/v1alpha1/devworkspacetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
// +k8s:openapi-gen=true
// +kubebuilder:resource:path=devworkspacetemplates,scope=Namespaced,shortName=dwt
// +kubebuilder:deprecatedversion
// +kubebuilder:unservedversion
type DevWorkspaceTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down

0 comments on commit 74b2607

Please sign in to comment.