Fix exec into pods to resize volumes for multi-container pods.

The original code assumed only one container per pod.
This commit is contained in:
Oleksii Kliukin
2018-06-04 14:51:39 +02:00
parent 6ee0349536
commit 04b660519a
3 changed files with 14 additions and 4 deletions
+1
View File
@@ -4,6 +4,7 @@ import "time"
// General kubernetes-related constants
const (
PostgresContainerName = "postgres"
K8sAPIPath = "/apis"
StatefulsetDeletionInterval = 1 * time.Second
StatefulsetDeletionTimeout = 30 * time.Second