Skip to content

Commit 96ce741

Browse files
committed
fix mounts
1 parent 0a6cfff commit 96ce741

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

internal/patroni/reconcile.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ func InstancePod(ctx context.Context,
156156
},
157157
},
158158
}...)
159+
160+
container.VolumeMounts = append(container.VolumeMounts, corev1.VolumeMount{
161+
Name: pNaming.CrunchyBinVolumeName,
162+
MountPath: pNaming.CrunchyBinVolumePath,
163+
})
159164
}
160165

161166
return nil

internal/patroni/reconcile_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ containers:
182182
- mountPath: /etc/patroni
183183
name: patroni-config
184184
readOnly: true
185+
- mountPath: /opt/crunchy
186+
name: crunchy-bin
185187
initContainers:
186188
- command:
187189
- /usr/local/bin/init-entrypoint.sh

0 commit comments

Comments
 (0)