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

Detect running containers to remove unnecessary error messages #81

Merged
merged 6 commits into from
Oct 1, 2024

Conversation

jaredoconnell
Copy link
Contributor

Changes introduced with this PR

This PR makes it so it checks to see if the container is still running. Now, the only time it will warn is if it is still running.
I also downgraded several of the messages to Debug or Info.

I also made it output the failure reason when it fails to kill the container, but you should only see that now if there is an actual problem.


By contributing to this repository, I agree to the contribution guidelines.

Copy link

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

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

I like the direction ... but a few comments along the way...

And do the other deployers have similar issues that should be addressed??

cli_plugin.go Show resolved Hide resolved
internal/cliwrapper/cliwrapper.go Outdated Show resolved Hide resolved
internal/cliwrapper/cliwrapper.go Show resolved Hide resolved
internal/cliwrapper/cliwrapper_interface.go Outdated Show resolved Hide resolved
Copy link

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

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

OK, still some minor comments, but you covered the most important ones; although gocritic is critical of your structural choices.

cli_plugin.go Outdated Show resolved Hide resolved
cli_plugin.go Outdated Show resolved Hide resolved
@jaredoconnell jaredoconnell merged commit de69b49 into main Oct 1, 2024
2 checks passed
@jaredoconnell jaredoconnell deleted the detect-running-containers branch October 1, 2024 15:57
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