Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions config/crd/bases/pxc.percona.com_perconaxtradbclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -5314,6 +5333,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -8335,6 +8373,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down
57 changes: 57 additions & 0 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3056,6 +3056,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -6621,6 +6640,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -9642,6 +9680,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down
5 changes: 5 additions & 0 deletions deploy/cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ spec:
size: 3
image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0
autoRecovery: true
# extraPVCs:
# - name: extra-data-volume
# claimName: kech-extra-storage
# mountPath: /var/lib/mysql-extra
# readOnly: false
# mysqlAllocator: jemalloc
# expose:
# enabled: true
Expand Down
57 changes: 57 additions & 0 deletions deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3056,6 +3056,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -6621,6 +6640,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -9642,6 +9680,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down
57 changes: 57 additions & 0 deletions deploy/cw-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3056,6 +3056,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -6621,6 +6640,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down Expand Up @@ -9642,6 +9680,25 @@ spec:
rule: '!(has(self.loadBalancerClass)) || self.type == ''LoadBalancer'''
externalTrafficPolicy:
type: string
extraPVCs:
items:
properties:
claimName:
type: string
mountPath:
type: string
name:
type: string
readOnly:
type: boolean
subPath:
type: string
required:
- claimName
- mountPath
- name
type: object
type: array
gracePeriod:
format: int64
type: integer
Expand Down
1 change: 1 addition & 0 deletions e2e-tests/extra-pvc/compare/select-1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
100500
69 changes: 69 additions & 0 deletions e2e-tests/extra-pvc/conf/extra-pvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: extra-storage-source
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Pod
metadata:
name: pvc-populator
spec:
containers:
- name: populator
image: busybox
command: ['sh', '-c', 'echo "Initial data" > /data/test-data.txt && sleep infinity']
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: extra-storage-source
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: extra-storage-0
spec:
accessModes:
- ReadOnlyMany
dataSource:
name: extra-storage-source
kind: PersistentVolumeClaim
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: extra-storage-1
spec:
accessModes:
- ReadOnlyMany
dataSource:
name: extra-storage-source
kind: PersistentVolumeClaim
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: extra-storage-2
spec:
accessModes:
- ReadOnlyMany
dataSource:
name: extra-storage-source
kind: PersistentVolumeClaim
resources:
requests:
storage: 1Gi
Loading
Loading