Skip to content

Commit f32c615

Browse files
siku4siku4
and
siku4
authored
fix typo in additionalVolume struct (zalando#933)
* fix typo in additionalVolume struct Co-authored-by: siku4 <sk@sik-net.de>
1 parent 21b9b6f commit f32c615

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

manifests/complete-postgres-manifest.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ spec:
3131
size: 1Gi
3232
# storageClass: my-sc
3333
additionalVolumes:
34-
- name: data
35-
mountPath: /home/postgres/pgdata/partitions
36-
targetContainers:
37-
- postgres
38-
volumeSource:
39-
PersistentVolumeClaim:
40-
claimName: pvc-postgresql-data-partitions
41-
readyOnly: false
42-
- name: conf
43-
mountPath: /etc/telegraf
44-
subPath: telegraf.conf
45-
targetContainers:
46-
- telegraf-sidecar
47-
volumeSource:
48-
configMap:
49-
name: my-config-map
5034
- name: empty
5135
mountPath: /opt/empty
5236
targetContainers:
5337
- all
5438
volumeSource:
5539
emptyDir: {}
40+
# - name: data
41+
# mountPath: /home/postgres/pgdata/partitions
42+
# targetContainers:
43+
# - postgres
44+
# volumeSource:
45+
# PersistentVolumeClaim:
46+
# claimName: pvc-postgresql-data-partitions
47+
# readyOnly: false
48+
# - name: conf
49+
# mountPath: /etc/telegraf
50+
# subPath: telegraf.conf
51+
# targetContainers:
52+
# - telegraf-sidecar
53+
# volumeSource:
54+
# configMap:
55+
# name: my-config-map
5656

5757
enableShmVolume: true
5858
# spiloFSGroup: 103

pkg/apis/acid.zalan.do/v1/postgresql_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type AdditionalVolume struct {
104104
MountPath string `json:"mountPath"`
105105
SubPath string `json:"subPath"`
106106
TargetContainers []string `json:"targetContainers"`
107-
VolumeSource v1.VolumeSource `json:"volume"`
107+
VolumeSource v1.VolumeSource `json:"volumeSource"`
108108
}
109109

110110
// PostgresqlParam describes PostgreSQL version and pairs of configuration parameter name - values.

0 commit comments

Comments
 (0)