Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 79b058b

Browse files
committed
workspace types updated
1 parent 370362b commit 79b058b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

apis/crds/v1/workspace_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ const (
1818
// WorkspaceSpec defines the desired state of Workspace
1919
type WorkspaceSpec struct {
2020
// Name of work machine
21-
WorkMachine string `json:"workMachine"`
21+
WorkMachine string `json:"workMachine" graphql:"noinput"`
2222

23+
// +kubebuilder:default=ON
2324
State WorkspaceState `json:"state"`
2425
ServiceAccountName string `json:"serviceAccountName,omitempty"`
2526

@@ -29,7 +30,7 @@ type WorkspaceSpec struct {
2930
EnableVSCodeServer bool `json:"enableVSCodeServer,omitempty"`
3031

3132
// +kubebuilder:default=IfNotPresent
32-
ImagePullPolicy string `json:"imagePullPolicy"`
33+
ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
3334

3435
// Router RouterSpec `json:"router"`
3536
}

config/crd/bases/crds.kloudlite.io_workspaces.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ spec:
6666
serviceAccountName:
6767
type: string
6868
state:
69+
default: "ON"
6970
enum:
7071
- "ON"
7172
- "OFF"
@@ -74,7 +75,6 @@ spec:
7475
description: Name of work machine
7576
type: string
7677
required:
77-
- imagePullPolicy
7878
- state
7979
- workMachine
8080
type: object

0 commit comments

Comments
 (0)