pass additionalSecretMount to logical backup pod (#714)
This commit is contained in:
parent
63d1f3bbe4
commit
0b544ae43f
|
|
@ -493,7 +493,7 @@ func generatePodTemplate(
|
||||||
Spec: podSpec,
|
Spec: podSpec,
|
||||||
}
|
}
|
||||||
if kubeIAMRole != "" {
|
if kubeIAMRole != "" {
|
||||||
if template.Annotations == nil{
|
if template.Annotations == nil {
|
||||||
template.Annotations = make(map[string]string)
|
template.Annotations = make(map[string]string)
|
||||||
}
|
}
|
||||||
template.Annotations[constants.KubeIAmAnnotation] = kubeIAMRole
|
template.Annotations[constants.KubeIAmAnnotation] = kubeIAMRole
|
||||||
|
|
@ -1508,8 +1508,8 @@ func (c *Cluster) generateLogicalBackupJob() (*batchv1beta1.CronJob, error) {
|
||||||
util.False(),
|
util.False(),
|
||||||
false,
|
false,
|
||||||
"",
|
"",
|
||||||
"",
|
c.OpConfig.AdditionalSecretMount,
|
||||||
""); err != nil {
|
c.OpConfig.AdditionalSecretMountPath); err != nil {
|
||||||
return nil, fmt.Errorf("could not generate pod template for logical backup pod: %v", err)
|
return nil, fmt.Errorf("could not generate pod template for logical backup pod: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue