Skip to content

Commit e24fd06

Browse files
committed
K8SPXC-1688 support adding existing pvcs to pxc instances
1 parent 549f11b commit e24fd06

File tree

9 files changed

+393
-1
lines changed

9 files changed

+393
-1
lines changed

config/crd/bases/pxc.percona.com_perconaxtradbclusters.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,25 @@ spec:
17461746
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
17471747
externalTrafficPolicy:
17481748
type: string
1749+
extraPVCs:
1750+
items:
1751+
properties:
1752+
claimName:
1753+
type: string
1754+
mountPath:
1755+
type: string
1756+
name:
1757+
type: string
1758+
readOnly:
1759+
type: boolean
1760+
subPath:
1761+
type: string
1762+
required:
1763+
- claimName
1764+
- mountPath
1765+
- name
1766+
type: object
1767+
type: array
17491768
gracePeriod:
17501769
format: int64
17511770
type: integer
@@ -5311,6 +5330,25 @@ spec:
53115330
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
53125331
externalTrafficPolicy:
53135332
type: string
5333+
extraPVCs:
5334+
items:
5335+
properties:
5336+
claimName:
5337+
type: string
5338+
mountPath:
5339+
type: string
5340+
name:
5341+
type: string
5342+
readOnly:
5343+
type: boolean
5344+
subPath:
5345+
type: string
5346+
required:
5347+
- claimName
5348+
- mountPath
5349+
- name
5350+
type: object
5351+
type: array
53145352
gracePeriod:
53155353
format: int64
53165354
type: integer
@@ -8332,6 +8370,25 @@ spec:
83328370
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
83338371
externalTrafficPolicy:
83348372
type: string
8373+
extraPVCs:
8374+
items:
8375+
properties:
8376+
claimName:
8377+
type: string
8378+
mountPath:
8379+
type: string
8380+
name:
8381+
type: string
8382+
readOnly:
8383+
type: boolean
8384+
subPath:
8385+
type: string
8386+
required:
8387+
- claimName
8388+
- mountPath
8389+
- name
8390+
type: object
8391+
type: array
83358392
gracePeriod:
83368393
format: int64
83378394
type: integer

deploy/bundle.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,25 @@ spec:
30533053
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
30543054
externalTrafficPolicy:
30553055
type: string
3056+
extraPVCs:
3057+
items:
3058+
properties:
3059+
claimName:
3060+
type: string
3061+
mountPath:
3062+
type: string
3063+
name:
3064+
type: string
3065+
readOnly:
3066+
type: boolean
3067+
subPath:
3068+
type: string
3069+
required:
3070+
- claimName
3071+
- mountPath
3072+
- name
3073+
type: object
3074+
type: array
30563075
gracePeriod:
30573076
format: int64
30583077
type: integer
@@ -6618,6 +6637,25 @@ spec:
66186637
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
66196638
externalTrafficPolicy:
66206639
type: string
6640+
extraPVCs:
6641+
items:
6642+
properties:
6643+
claimName:
6644+
type: string
6645+
mountPath:
6646+
type: string
6647+
name:
6648+
type: string
6649+
readOnly:
6650+
type: boolean
6651+
subPath:
6652+
type: string
6653+
required:
6654+
- claimName
6655+
- mountPath
6656+
- name
6657+
type: object
6658+
type: array
66216659
gracePeriod:
66226660
format: int64
66236661
type: integer
@@ -9639,6 +9677,25 @@ spec:
96399677
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
96409678
externalTrafficPolicy:
96419679
type: string
9680+
extraPVCs:
9681+
items:
9682+
properties:
9683+
claimName:
9684+
type: string
9685+
mountPath:
9686+
type: string
9687+
name:
9688+
type: string
9689+
readOnly:
9690+
type: boolean
9691+
subPath:
9692+
type: string
9693+
required:
9694+
- claimName
9695+
- mountPath
9696+
- name
9697+
type: object
9698+
type: array
96429699
gracePeriod:
96439700
format: int64
96449701
type: integer

deploy/cr.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ spec:
6363
size: 3
6464
image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0
6565
autoRecovery: true
66+
# extraPVCs:
67+
# - name: extra-data-volume
68+
# claimName: kech-extra-storage
69+
# mountPath: /var/lib/mysql-extra
70+
# readOnly: false
6671
# mysqlAllocator: jemalloc
6772
# expose:
6873
# enabled: true

deploy/crd.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,25 @@ spec:
30533053
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
30543054
externalTrafficPolicy:
30553055
type: string
3056+
extraPVCs:
3057+
items:
3058+
properties:
3059+
claimName:
3060+
type: string
3061+
mountPath:
3062+
type: string
3063+
name:
3064+
type: string
3065+
readOnly:
3066+
type: boolean
3067+
subPath:
3068+
type: string
3069+
required:
3070+
- claimName
3071+
- mountPath
3072+
- name
3073+
type: object
3074+
type: array
30563075
gracePeriod:
30573076
format: int64
30583077
type: integer
@@ -6618,6 +6637,25 @@ spec:
66186637
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
66196638
externalTrafficPolicy:
66206639
type: string
6640+
extraPVCs:
6641+
items:
6642+
properties:
6643+
claimName:
6644+
type: string
6645+
mountPath:
6646+
type: string
6647+
name:
6648+
type: string
6649+
readOnly:
6650+
type: boolean
6651+
subPath:
6652+
type: string
6653+
required:
6654+
- claimName
6655+
- mountPath
6656+
- name
6657+
type: object
6658+
type: array
66216659
gracePeriod:
66226660
format: int64
66236661
type: integer
@@ -9639,6 +9677,25 @@ spec:
96399677
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
96409678
externalTrafficPolicy:
96419679
type: string
9680+
extraPVCs:
9681+
items:
9682+
properties:
9683+
claimName:
9684+
type: string
9685+
mountPath:
9686+
type: string
9687+
name:
9688+
type: string
9689+
readOnly:
9690+
type: boolean
9691+
subPath:
9692+
type: string
9693+
required:
9694+
- claimName
9695+
- mountPath
9696+
- name
9697+
type: object
9698+
type: array
96429699
gracePeriod:
96439700
format: int64
96449701
type: integer

deploy/cw-bundle.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,25 @@ spec:
30533053
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
30543054
externalTrafficPolicy:
30553055
type: string
3056+
extraPVCs:
3057+
items:
3058+
properties:
3059+
claimName:
3060+
type: string
3061+
mountPath:
3062+
type: string
3063+
name:
3064+
type: string
3065+
readOnly:
3066+
type: boolean
3067+
subPath:
3068+
type: string
3069+
required:
3070+
- claimName
3071+
- mountPath
3072+
- name
3073+
type: object
3074+
type: array
30563075
gracePeriod:
30573076
format: int64
30583077
type: integer
@@ -6618,6 +6637,25 @@ spec:
66186637
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
66196638
externalTrafficPolicy:
66206639
type: string
6640+
extraPVCs:
6641+
items:
6642+
properties:
6643+
claimName:
6644+
type: string
6645+
mountPath:
6646+
type: string
6647+
name:
6648+
type: string
6649+
readOnly:
6650+
type: boolean
6651+
subPath:
6652+
type: string
6653+
required:
6654+
- claimName
6655+
- mountPath
6656+
- name
6657+
type: object
6658+
type: array
66216659
gracePeriod:
66226660
format: int64
66236661
type: integer
@@ -9639,6 +9677,25 @@ spec:
96399677
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
96409678
externalTrafficPolicy:
96419679
type: string
9680+
extraPVCs:
9681+
items:
9682+
properties:
9683+
claimName:
9684+
type: string
9685+
mountPath:
9686+
type: string
9687+
name:
9688+
type: string
9689+
readOnly:
9690+
type: boolean
9691+
subPath:
9692+
type: string
9693+
required:
9694+
- claimName
9695+
- mountPath
9696+
- name
9697+
type: object
9698+
type: array
96429699
gracePeriod:
96439700
format: int64
96449701
type: integer

0 commit comments

Comments
 (0)