Skip to content

Commit db24540

Browse files
committed
fix: Continuous ActionSet PreDelete does not replace IMAGE_TAG
1 parent fcd0f17 commit db24540

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/dataprotection/backup/deleter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ func (d *Deleter) doPreDeleteAction(
326326
if d.actionSet != nil {
327327
envVars = append(envVars, d.actionSet.Spec.Env...)
328328
}
329+
if backup.Status.BackupMethod != nil {
330+
envVars = append(envVars, backup.Status.BackupMethod.Env...)
331+
}
329332
image := common.Expand(preDeleteAction.Image, common.MappingFuncFor(utils.CovertEnvToMap(envVars)))
330333
container := corev1.Container{
331334
Name: deleteContainerName,

0 commit comments

Comments
 (0)