-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: migrate job #154
fix: migrate job #154
Conversation
@tarioch this seems to have fixed the problem. I don't know why can you try it in your job yaml, If it works I'll merge this. |
AFAIK It should work only if In case of multiple sites under a bench, the option is required to specify which site to run the bench command for. There is also a magic keyword |
Doesn't look like it works. Still get no such option error. |
make sure you are using the template from PR. I've added test to confirm the migration job from PR works. migration output starts here: https://github.com/frappe/helm/actions/runs/3958254435/jobs/6779598616#step:3:302 |
I'm using the option from the values jobs:
migrate:
enabled: true
siteName: "mysite.domain.tld" |
Maybe it only works if using the erpnext image and not with the custom ones built according to https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md |
You generate file? the pipe command which does the that is generating the file. don't pipe it to kubectl apply. pipe it to a file and edit it and replace Then kubectl -n erpnext apply -f /path/to/file.yaml |
no, I'm just doing a helm install/upgrade, not using kubectl manually |
Works with my custom app https://gitlab.com/castlecraft/k8s_bench/-/jobs/3619771980 I used that app to confirm the fix. Added the test because it will fail for erpnext in the current code. |
for that you will need to wait for this PR to get merged and the next chart release get published. The fix is on my fork! sent as a PR! |
check the version 6.0.2 now. you will need to |
Can confirm that it works with 6.0.2, thank you very much |
fixes #153