mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 16:41:15 +02:00
feat: Add SubPathExpr option for additionalVolumes (#2463)
This commit is contained in:
@@ -83,6 +83,16 @@ spec:
|
||||
# PersistentVolumeClaim:
|
||||
# claimName: pvc-postgresql-data-partitions
|
||||
# readyOnly: false
|
||||
# - name: data
|
||||
# mountPath: /home/postgres/pgdata/partitions
|
||||
# subPath: $(NODE_NAME)/$(POD_NAME)
|
||||
# isSubPathExpr: true
|
||||
# targetContainers:
|
||||
# - postgres
|
||||
# volumeSource:
|
||||
# PersistentVolumeClaim:
|
||||
# claimName: pvc-postgresql-data-partitions
|
||||
# readyOnly: false
|
||||
# - name: conf
|
||||
# mountPath: /etc/telegraf
|
||||
# subPath: telegraf.conf
|
||||
|
||||
@@ -99,6 +99,8 @@ spec:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
subPath:
|
||||
type: string
|
||||
isSubPathExpr:
|
||||
type: boolean
|
||||
allowedSourceRanges:
|
||||
type: array
|
||||
nullable: true
|
||||
|
||||
Reference in New Issue
Block a user