feat: add persistUserHome Che Cluster CR field
Fix eclipse/che#22102 Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>pull/1740/head
parent
7d72b0d958
commit
d55d8a77be
|
|
@ -85,6 +85,10 @@ type CheClusterDevEnvironments struct {
|
|||
// +optional
|
||||
// +kubebuilder:default:={pvcStrategy: per-user}
|
||||
Storage WorkspaceStorage `json:"storage,omitempty"`
|
||||
// PersistUserHome defines configuration options for persisting the
|
||||
// user home directory in workspaces.
|
||||
// +optional
|
||||
PersistUserHome *PersistentHomeConfig `json:"persistUserHome,omitempty"`
|
||||
// Default plug-ins applied to DevWorkspaces.
|
||||
// +optional
|
||||
DefaultPlugins []WorkspaceDefaultPlugins `json:"defaultPlugins,omitempty"`
|
||||
|
|
@ -437,6 +441,14 @@ type WorkspaceStorage struct {
|
|||
PvcStrategy string `json:"pvcStrategy,omitempty"`
|
||||
}
|
||||
|
||||
type PersistentHomeConfig struct {
|
||||
// Determines whether the user home directory in workspaces should persist between
|
||||
// workspace shutdown and startup.
|
||||
// Must be used with the 'per-user' or 'per-workspace' PVC strategy in order to take effect.
|
||||
// Disabled by default.
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
type WorkspaceDefaultPlugins struct {
|
||||
// The editor ID to specify default plug-ins for.
|
||||
Editor string `json:"editor,omitempty"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue