Skip to content

Fix: correct site name correctly in backup and drop multiple site jobs#280

Open
disha-itpl wants to merge 9 commits intofrappe:mainfrom
Improwised:fix/jobs
Open

Fix: correct site name correctly in backup and drop multiple site jobs#280
disha-itpl wants to merge 9 commits intofrappe:mainfrom
Improwised:fix/jobs

Conversation

@disha-itpl
Copy link
Copy Markdown
Contributor

Summary

This PR fixes an issue in the backup-multiple-sites and drop-multiple-sites Helm job templates where the full site map was being passed to the --site flag instead of the actual site name.

Problem

The jobs iterate over:

sites:
  - name: "frappe.helpdesk.local"

However, the template previously used:

--site={{ $site }}

Since $site is a map (e.g., map[name:frappe.helpdesk.local]), the generated command became invalid:

bench --site=map[name:frappe.helpdesk.local] backup

This caused the jobs to fail.

Fix

Updated the templates to correctly reference:

--site={{ $site.name }}

This ensures the generated command is:

bench --site=frappe.helpdesk.local backup

The same correction has been applied to both:

  • backup-multiple-sites
  • drop-multiple-sites

Validation

  • Deployed the updated chart.
  • Verified that backup and drop jobs now execute successfully.
  • Confirmed correct --site argument in generated pod logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant