You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Restore action jobs override ActionSet environment with workload values #10626
Post-ready restore jobs inherit the target workload container environment after composing DataProtection and ActionSet environment variables. When both layers define the same name, the workload value wins.
This can replace an ActionSet value that intentionally references DataProtection target identity. For example, a RabbitMQ post-ready action declares:
but the generated Job receives the workload value based on $(POD_NAME). Restore action jobs also do not provide DP_TARGET_POD_NAME and DP_TARGET_POD_ROLE, unlike backup jobs.
Expected behavior
Restore Job environment composition has deterministic precedence:
target workload environment
DataProtection common/current-target variables
ActionSet environment
BackupMethod environment
Restore environment
Higher-priority duplicate names should appear at the higher layer's position so Kubernetes can expand references to variables declared earlier. The generated environment should contain unique names, preserve envFrom, and use the current target pod identity rather than the backup source pod identity.
Scope
Keep this behavior local to restore Job construction. Do not change the global environment merge helper used by other controllers.
Activity