chore: update dev resources for persistUserHome Che Cluster CR field

Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
pull/1740/head
Andrew Obuchowicz 2023-07-24 15:26:45 +00:00 committed by Ilya Buziuk
parent 93691bb289
commit cbf068fa32
10 changed files with 109 additions and 7 deletions

View File

@ -442,11 +442,11 @@ type WorkspaceStorage struct {
}
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"`
// 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 {

View File

@ -178,6 +178,11 @@ func (in *CheClusterDevEnvironments) DeepCopyInto(out *CheClusterDevEnvironments
(*in).DeepCopyInto(*out)
}
in.Storage.DeepCopyInto(&out.Storage)
if in.PersistUserHome != nil {
in, out := &in.PersistUserHome, &out.PersistUserHome
*out = new(PersistentHomeConfig)
(*in).DeepCopyInto(*out)
}
if in.DefaultPlugins != nil {
in, out := &in.DefaultPlugins, &out.DefaultPlugins
*out = make([]WorkspaceDefaultPlugins, len(*in))
@ -757,6 +762,26 @@ func (in *PVC) DeepCopy() *PVC {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PersistentHomeConfig) DeepCopyInto(out *PersistentHomeConfig) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentHomeConfig.
func (in *PersistentHomeConfig) DeepCopy() *PersistentHomeConfig {
if in == nil {
return nil
}
out := new(PersistentHomeConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PluginRegistry) DeepCopyInto(out *PluginRegistry) {
*out = *in

View File

@ -77,7 +77,7 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/eclipse-che/che-operator
support: Eclipse Foundation
name: eclipse-che.v7.71.0-804.next
name: eclipse-che.v7.72.0-805.next
namespace: placeholder
spec:
apiservicedefinitions: {}
@ -1231,7 +1231,7 @@ spec:
minKubeVersion: 1.19.0
provider:
name: Eclipse Foundation
version: 7.71.0-804.next
version: 7.72.0-805.next
webhookdefinitions:
- admissionReviewVersions:
- v1

View File

@ -7012,6 +7012,17 @@ spec:
description: The node selector limits the nodes that can run
the workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.

View File

@ -6815,6 +6815,17 @@ spec:
description: The node selector limits the nodes that can run the
workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.

View File

@ -6834,6 +6834,17 @@ spec:
description: The node selector limits the nodes that can run the
workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.

View File

@ -6829,6 +6829,17 @@ spec:
description: The node selector limits the nodes that can run the
workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.

View File

@ -6834,6 +6834,17 @@ spec:
description: The node selector limits the nodes that can run the
workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.

View File

@ -6829,6 +6829,17 @@ spec:
description: The node selector limits the nodes that can run the
workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.

View File

@ -6829,6 +6829,17 @@ spec:
description: The node selector limits the nodes that can run the
workspace pods.
type: object
persistUserHome:
description: PersistUserHome defines configuration options for
persisting the user home directory in workspaces.
properties:
enabled:
description: 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.
type: boolean
type: object
podSchedulerName:
description: Pod scheduler for the workspace pods. If not specified,
the pod scheduler is set to the default scheduler on the cluster.