Skip to content

Commit d46ab9e

Browse files
committed
feat : Add storageAccessMode to PVC che cluster types
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
1 parent 306e737 commit d46ab9e

10 files changed

Lines changed: 170 additions & 4 deletions

api/v2/checluster_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,13 @@ type PVC struct {
661661
// Storage class for the Persistent Volume Claim. When omitted or left blank, a default storage class is used.
662662
// +optional
663663
StorageClass string `json:"storageClass,omitempty"`
664+
// StorageAccessMode are the desired access modes the volume should have.
665+
// It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
666+
// user to re-use volume across multiple workspaces.
667+
//
668+
// It defaults to ReadWriteOnce if not specified
669+
// +optional
670+
StorageAccessMode []corev1.PersistentVolumeAccessMode `json:"storageAccessMode,omitempty"`
664671
}
665672

666673
// External devfile registries configuration.

api/v2/zz_generated.deepcopy.go

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ metadata:
108108
operatorframework.io/arch.amd64: supported
109109
operatorframework.io/arch.arm64: supported
110110
operatorframework.io/os.linux: supported
111-
name: eclipse-che.v7.105.0-911.next
111+
name: eclipse-che.v7.105.0-912.next
112112
namespace: placeholder
113113
spec:
114114
apiservicedefinitions: {}
@@ -1084,7 +1084,7 @@ spec:
10841084
minKubeVersion: 1.19.0
10851085
provider:
10861086
name: Eclipse Foundation
1087-
version: 7.105.0-911.next
1087+
version: 7.105.0-912.next
10881088
webhookdefinitions:
10891089
- admissionReviewVersions:
10901090
- v1

bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7926,6 +7926,17 @@ spec:
79267926
the claim size, the storage class that provisions
79277927
it must support resizing.
79287928
type: string
7929+
storageAccessMode:
7930+
description: |-
7931+
StorageAccessMode are the desired access modes the volume should have.
7932+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7933+
user to re-use volume across multiple workspaces.
7934+
7935+
7936+
It defaults to ReadWriteOnce if not specified
7937+
items:
7938+
type: string
7939+
type: array
79297940
storageClass:
79307941
description: Storage class for the Persistent Volume
79317942
Claim. When omitted or left blank, a default storage
@@ -7941,6 +7952,17 @@ spec:
79417952
the claim size, the storage class that provisions
79427953
it must support resizing.
79437954
type: string
7955+
storageAccessMode:
7956+
description: |-
7957+
StorageAccessMode are the desired access modes the volume should have.
7958+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7959+
user to re-use volume across multiple workspaces.
7960+
7961+
7962+
It defaults to ReadWriteOnce if not specified
7963+
items:
7964+
type: string
7965+
type: array
79447966
storageClass:
79457967
description: Storage class for the Persistent Volume
79467968
Claim. When omitted or left blank, a default storage

config/crd/bases/org.eclipse.che_checlusters.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7877,6 +7877,17 @@ spec:
78777877
claim size, the storage class that provisions it must
78787878
support resizing.
78797879
type: string
7880+
storageAccessMode:
7881+
description: |-
7882+
StorageAccessMode are the desired access modes the volume should have.
7883+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7884+
user to re-use volume across multiple workspaces.
7885+
7886+
7887+
It defaults to ReadWriteOnce if not specified
7888+
items:
7889+
type: string
7890+
type: array
78807891
storageClass:
78817892
description: Storage class for the Persistent Volume Claim.
78827893
When omitted or left blank, a default storage class
@@ -7892,6 +7903,17 @@ spec:
78927903
claim size, the storage class that provisions it must
78937904
support resizing.
78947905
type: string
7906+
storageAccessMode:
7907+
description: |-
7908+
StorageAccessMode are the desired access modes the volume should have.
7909+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7910+
user to re-use volume across multiple workspaces.
7911+
7912+
7913+
It defaults to ReadWriteOnce if not specified
7914+
items:
7915+
type: string
7916+
type: array
78957917
storageClass:
78967918
description: Storage class for the Persistent Volume Claim.
78977919
When omitted or left blank, a default storage class

deploy/deployment/kubernetes/combined.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7898,6 +7898,17 @@ spec:
78987898
claim size, the storage class that provisions it must
78997899
support resizing.
79007900
type: string
7901+
storageAccessMode:
7902+
description: |-
7903+
StorageAccessMode are the desired access modes the volume should have.
7904+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7905+
user to re-use volume across multiple workspaces.
7906+
7907+
7908+
It defaults to ReadWriteOnce if not specified
7909+
items:
7910+
type: string
7911+
type: array
79017912
storageClass:
79027913
description: Storage class for the Persistent Volume Claim.
79037914
When omitted or left blank, a default storage class
@@ -7913,6 +7924,17 @@ spec:
79137924
claim size, the storage class that provisions it must
79147925
support resizing.
79157926
type: string
7927+
storageAccessMode:
7928+
description: |-
7929+
StorageAccessMode are the desired access modes the volume should have.
7930+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7931+
user to re-use volume across multiple workspaces.
7932+
7933+
7934+
It defaults to ReadWriteOnce if not specified
7935+
items:
7936+
type: string
7937+
type: array
79167938
storageClass:
79177939
description: Storage class for the Persistent Volume Claim.
79187940
When omitted or left blank, a default storage class

deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7893,6 +7893,17 @@ spec:
78937893
claim size, the storage class that provisions it must
78947894
support resizing.
78957895
type: string
7896+
storageAccessMode:
7897+
description: |-
7898+
StorageAccessMode are the desired access modes the volume should have.
7899+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7900+
user to re-use volume across multiple workspaces.
7901+
7902+
7903+
It defaults to ReadWriteOnce if not specified
7904+
items:
7905+
type: string
7906+
type: array
78967907
storageClass:
78977908
description: Storage class for the Persistent Volume Claim.
78987909
When omitted or left blank, a default storage class
@@ -7908,6 +7919,17 @@ spec:
79087919
claim size, the storage class that provisions it must
79097920
support resizing.
79107921
type: string
7922+
storageAccessMode:
7923+
description: |-
7924+
StorageAccessMode are the desired access modes the volume should have.
7925+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7926+
user to re-use volume across multiple workspaces.
7927+
7928+
7929+
It defaults to ReadWriteOnce if not specified
7930+
items:
7931+
type: string
7932+
type: array
79117933
storageClass:
79127934
description: Storage class for the Persistent Volume Claim.
79137935
When omitted or left blank, a default storage class

deploy/deployment/openshift/combined.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7898,6 +7898,17 @@ spec:
78987898
claim size, the storage class that provisions it must
78997899
support resizing.
79007900
type: string
7901+
storageAccessMode:
7902+
description: |-
7903+
StorageAccessMode are the desired access modes the volume should have.
7904+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7905+
user to re-use volume across multiple workspaces.
7906+
7907+
7908+
It defaults to ReadWriteOnce if not specified
7909+
items:
7910+
type: string
7911+
type: array
79017912
storageClass:
79027913
description: Storage class for the Persistent Volume Claim.
79037914
When omitted or left blank, a default storage class
@@ -7913,6 +7924,17 @@ spec:
79137924
claim size, the storage class that provisions it must
79147925
support resizing.
79157926
type: string
7927+
storageAccessMode:
7928+
description: |-
7929+
StorageAccessMode are the desired access modes the volume should have.
7930+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7931+
user to re-use volume across multiple workspaces.
7932+
7933+
7934+
It defaults to ReadWriteOnce if not specified
7935+
items:
7936+
type: string
7937+
type: array
79167938
storageClass:
79177939
description: Storage class for the Persistent Volume Claim.
79187940
When omitted or left blank, a default storage class

deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7893,6 +7893,17 @@ spec:
78937893
claim size, the storage class that provisions it must
78947894
support resizing.
78957895
type: string
7896+
storageAccessMode:
7897+
description: |-
7898+
StorageAccessMode are the desired access modes the volume should have.
7899+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7900+
user to re-use volume across multiple workspaces.
7901+
7902+
7903+
It defaults to ReadWriteOnce if not specified
7904+
items:
7905+
type: string
7906+
type: array
78967907
storageClass:
78977908
description: Storage class for the Persistent Volume Claim.
78987909
When omitted or left blank, a default storage class
@@ -7908,6 +7919,17 @@ spec:
79087919
claim size, the storage class that provisions it must
79097920
support resizing.
79107921
type: string
7922+
storageAccessMode:
7923+
description: |-
7924+
StorageAccessMode are the desired access modes the volume should have.
7925+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7926+
user to re-use volume across multiple workspaces.
7927+
7928+
7929+
It defaults to ReadWriteOnce if not specified
7930+
items:
7931+
type: string
7932+
type: array
79117933
storageClass:
79127934
description: Storage class for the Persistent Volume Claim.
79137935
When omitted or left blank, a default storage class

helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7893,6 +7893,17 @@ spec:
78937893
claim size, the storage class that provisions it must
78947894
support resizing.
78957895
type: string
7896+
storageAccessMode:
7897+
description: |-
7898+
StorageAccessMode are the desired access modes the volume should have.
7899+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7900+
user to re-use volume across multiple workspaces.
7901+
7902+
7903+
It defaults to ReadWriteOnce if not specified
7904+
items:
7905+
type: string
7906+
type: array
78967907
storageClass:
78977908
description: Storage class for the Persistent Volume Claim.
78987909
When omitted or left blank, a default storage class
@@ -7908,6 +7919,17 @@ spec:
79087919
claim size, the storage class that provisions it must
79097920
support resizing.
79107921
type: string
7922+
storageAccessMode:
7923+
description: |-
7924+
StorageAccessMode are the desired access modes the volume should have.
7925+
It is used to specify PersistentVolume access mode type to RWO/RWX when using per-user strategy, allowing
7926+
user to re-use volume across multiple workspaces.
7927+
7928+
7929+
It defaults to ReadWriteOnce if not specified
7930+
items:
7931+
type: string
7932+
type: array
79117933
storageClass:
79127934
description: Storage class for the Persistent Volume Claim.
79137935
When omitted or left blank, a default storage class

0 commit comments

Comments
 (0)