Skip to content

Commit 8d18a14

Browse files
wangyeleiapecloud-bot
authored andcommitted
fix: Continuous ActionSet PreDelete does not replace IMAGE_TAG (#10004)
(cherry picked from commit 5165161)
1 parent 74cabec commit 8d18a14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)