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

Add option to force image check for disabled/suspended workloads #75

Merged

Conversation

verdel
Copy link
Contributor

@verdel verdel commented Oct 5, 2023

Currently the exporter does not check the availability of docker image for disable/suspend workloads. I add a CLI option check-disabled that will bypass the workload enable status check. This force docker image check for disabled/suspended workloads.

Option check-disabled equal false by default to avoid creating breaking changes.

Closes #74

@verdel
Copy link
Contributor Author

verdel commented Oct 19, 2023

@zuzzas, can you please review this PR?

Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

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

@verdel thank you for opening the PR! I have only one suggestion to make the feature more flexible.

main.go Outdated Show resolved Hide resolved
@nabokihms
Copy link
Member

One more thing I noticed by looking through the repo.
Could you please also add the description of the flag to the docs here?

@verdel verdel force-pushed the force-image-check-disable-workloads branch 2 times, most recently from f35a162 to 019c9d2 Compare January 11, 2024 22:02
@verdel verdel force-pushed the force-image-check-disable-workloads branch from 019c9d2 to de013d0 Compare January 11, 2024 22:08
@verdel
Copy link
Contributor Author

verdel commented Jan 11, 2024

@nabokihms, I have made the requested changes and also added a description of the option in README.md. If you have the opportunity, I would appreciate it if you could review the pull request again.

@verdel verdel requested a review from nabokihms January 11, 2024 22:13
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

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

There are a couple of suggestions, but besides, lgtm!

main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
@verdel verdel requested a review from nabokihms January 12, 2024 10:50
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

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

@verdel thanks! Looks cool.

@nabokihms nabokihms merged commit c0fddbc into deckhouse:master Jan 13, 2024
6 checks passed
@verdel
Copy link
Contributor Author

verdel commented Jan 13, 2024

@verdel thanks! Looks cool.

Thank you very much for your time!

@verdel verdel deleted the force-image-check-disable-workloads branch January 13, 2024 22:35
@nabokihms nabokihms added the enhancement New feature or request label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to force docker image check for disable/suspend workloads
2 participants