Skip to content
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

Login to the registry proactively before stoping Accessory and Traefik #349

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

igor-alexandrov
Copy link
Contributor

Currently, mrsk traefik reboot and mrsk accessory reboot first do stop and only at the end of the script attempt to log in to the registry. If the login fails (e.g., due to an expired MRSK_REGISTRY_PASSWORD), Traefik or the accessory will remain stopped.

I have changed the order of commands performed during the reboot. Now, if the login fails, Traefik and the accessory will continue running.

@igor-alexandrov igor-alexandrov marked this pull request as ready for review June 22, 2023 11:36
@igor-alexandrov
Copy link
Contributor Author

@djmb @dhh please take a look at this PR. The current behavior is rather nasty.

Copy link
Collaborator

@djmb djmb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @igor-alexandrov! Agreed that this is important to fix.

Could you fix the issue I mentioned and then I'll get this merged?

lib/mrsk/cli/traefik.rb Outdated Show resolved Hide resolved
@djmb djmb merged commit e1433f3 into basecamp:main Jul 19, 2023
6 checks passed
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.

2 participants