Skip to content

Commit 66c4834

Browse files
authored
Merge pull request #467 from catpineapple/pvc-storage-modify
[feature](pvc) enable pvc storage modify
2 parents bb44910 + ca0bf94 commit 66c4834

File tree

14 files changed

+867
-91
lines changed

14 files changed

+867
-91
lines changed

api/disaggregated/v1/types.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,18 @@ type PersistentVolume struct {
246246
//Annotation for PVC pods. Users can adapt the storage authentication and pv binding of the cloud platform through configuration.
247247
//It only takes effect in the first configuration and cannot be added or modified later.
248248
Annotations map[string]string `json:"annotations,omitempty"`
249+
250+
// defines pvc provisioner, default is ''.
251+
PVCProvisioner PVCProvisioner `json:"provisioner,omitempty"`
249252
}
250253

254+
type PVCProvisioner string
255+
256+
// Possible values of PVC provisioner
257+
const (
258+
PVCProvisionerOperator PVCProvisioner = "operator"
259+
)
260+
251261
type Secret struct {
252262
//specify the secret need to be mounted in deployed namespace.
253263
SecretName string `json:"secretName,omitempty"`

config/crd/bases/crds.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10841,6 +10841,9 @@ spec:
1084110841
the PersistentVolume backing this claim.
1084210842
type: string
1084310843
type: object
10844+
provisioner:
10845+
description: defines pvc provisioner, default is ''.
10846+
type: string
1084410847
type: object
1084510848
persistentVolumes:
1084610849
description: volume template for mountPath
@@ -11071,6 +11074,9 @@ spec:
1107111074
the PersistentVolume backing this claim.
1107211075
type: string
1107311076
type: object
11077+
provisioner:
11078+
description: defines pvc provisioner, default is ''.
11079+
type: string
1107411080
type: object
1107511081
type: array
1107611082
replicas:
@@ -13079,6 +13085,9 @@ spec:
1307913085
PersistentVolume backing this claim.
1308013086
type: string
1308113087
type: object
13088+
provisioner:
13089+
description: defines pvc provisioner, default is ''.
13090+
type: string
1308213091
type: object
1308313092
persistentVolumes:
1308413093
description: volume template for mountPath
@@ -13308,6 +13317,9 @@ spec:
1330813317
the PersistentVolume backing this claim.
1330913318
type: string
1331013319
type: object
13320+
provisioner:
13321+
description: defines pvc provisioner, default is ''.
13322+
type: string
1331113323
type: object
1331213324
type: array
1331313325
replicas:
@@ -15327,6 +15339,9 @@ spec:
1532715339
PersistentVolume backing this claim.
1532815340
type: string
1532915341
type: object
15342+
provisioner:
15343+
description: defines pvc provisioner, default is ''.
15344+
type: string
1533015345
type: object
1533115346
persistentVolumes:
1533215347
description: volume template for mountPath
@@ -15556,6 +15571,9 @@ spec:
1555615571
the PersistentVolume backing this claim.
1555715572
type: string
1555815573
type: object
15574+
provisioner:
15575+
description: defines pvc provisioner, default is ''.
15576+
type: string
1555915577
type: object
1556015578
type: array
1556115579
replicas:

config/crd/bases/disaggregated.cluster.doris.com_dorisdisaggregatedclusters.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,9 @@ spec:
17001700
the PersistentVolume backing this claim.
17011701
type: string
17021702
type: object
1703+
provisioner:
1704+
description: defines pvc provisioner, default is ''.
1705+
type: string
17031706
type: object
17041707
persistentVolumes:
17051708
description: volume template for mountPath
@@ -1930,6 +1933,9 @@ spec:
19301933
the PersistentVolume backing this claim.
19311934
type: string
19321935
type: object
1936+
provisioner:
1937+
description: defines pvc provisioner, default is ''.
1938+
type: string
19331939
type: object
19341940
type: array
19351941
replicas:
@@ -3938,6 +3944,9 @@ spec:
39383944
PersistentVolume backing this claim.
39393945
type: string
39403946
type: object
3947+
provisioner:
3948+
description: defines pvc provisioner, default is ''.
3949+
type: string
39413950
type: object
39423951
persistentVolumes:
39433952
description: volume template for mountPath
@@ -4167,6 +4176,9 @@ spec:
41674176
the PersistentVolume backing this claim.
41684177
type: string
41694178
type: object
4179+
provisioner:
4180+
description: defines pvc provisioner, default is ''.
4181+
type: string
41704182
type: object
41714183
type: array
41724184
replicas:
@@ -6186,6 +6198,9 @@ spec:
61866198
PersistentVolume backing this claim.
61876199
type: string
61886200
type: object
6201+
provisioner:
6202+
description: defines pvc provisioner, default is ''.
6203+
type: string
61896204
type: object
61906205
persistentVolumes:
61916206
description: volume template for mountPath
@@ -6415,6 +6430,9 @@ spec:
64156430
the PersistentVolume backing this claim.
64166431
type: string
64176432
type: object
6433+
provisioner:
6434+
description: defines pvc provisioner, default is ''.
6435+
type: string
64186436
type: object
64196437
type: array
64206438
replicas:

config/operator/disaggregated-operator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ rules:
162162
- get
163163
- list
164164
- watch
165+
- create
165166
- update
166167
- patch
167168
- delete

0 commit comments

Comments
 (0)