Skip to content

Commit fb42003

Browse files
committed
Remove ideUrl from DevWorkspace printcolumns; reuse message instead
Since the addition of .status.message, the output for `kubectl get dw` has become unweildy -- either .status.message is populated with an error message or .status.ideUrl is populated with the URL at which to access the workspace. To clean this up, remove the printcolumn for .status.ideUrl and repurpose .status.message to show the URL to the user. Signed-off-by: Angel Misevski <[email protected]>
1 parent 49ba915 commit fb42003

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/apis/workspaces/v1alpha2/devworkspace_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ const (
7272
// +kubebuilder:resource:path=devworkspaces,scope=Namespaced,shortName=dw
7373
// +kubebuilder:printcolumn:name="Workspace ID",type="string",JSONPath=".status.workspaceId",description="The workspace's unique id"
7474
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="The current workspace startup phase"
75-
// +kubebuilder:printcolumn:name="Info",type="string",JSONPath=".status.message",description="Additional information about workspace state"
76-
// +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.ideUrl",description="Url endpoint for accessing workspace"
75+
// +kubebuilder:printcolumn:name="Info",type="string",JSONPath=".status.message",description="Additional information about the workspace"
7776
// +devfile:jsonschema:generate
7877
// +kubebuilder:storageversion
7978
type DevWorkspace struct {

0 commit comments

Comments
 (0)