Skip to content

Commit 0b544ae

Browse files
authored
pass additionalSecretMount to logical backup pod (zalando#714)
1 parent 63d1f3b commit 0b544ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cluster/k8sres.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func generatePodTemplate(
493493
Spec: podSpec,
494494
}
495495
if kubeIAMRole != "" {
496-
if template.Annotations == nil{
496+
if template.Annotations == nil {
497497
template.Annotations = make(map[string]string)
498498
}
499499
template.Annotations[constants.KubeIAmAnnotation] = kubeIAMRole
@@ -967,7 +967,7 @@ func (c *Cluster) generatePodAnnotations(spec *acidv1.PostgresSpec) map[string]s
967967
annotations[k] = v
968968
}
969969
}
970-
970+
971971
if len(annotations) == 0 {
972972
return nil
973973
}
@@ -1508,8 +1508,8 @@ func (c *Cluster) generateLogicalBackupJob() (*batchv1beta1.CronJob, error) {
15081508
util.False(),
15091509
false,
15101510
"",
1511-
"",
1512-
""); err != nil {
1511+
c.OpConfig.AdditionalSecretMount,
1512+
c.OpConfig.AdditionalSecretMountPath); err != nil {
15131513
return nil, fmt.Errorf("could not generate pod template for logical backup pod: %v", err)
15141514
}
15151515

0 commit comments

Comments
 (0)