-
Notifications
You must be signed in to change notification settings - Fork 388
T6686: adds container health checks #4702
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
base: current
Are you sure you want to change the base?
Conversation
All contributors have signed the CLA ✍️ ✅ |
👍 |
I have read the CLA Document and I hereby sign the CLA |
0baafcf
to
ec5e1e3
Compare
@c-po @sever-sever This would be ready for a review |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@nvollmar rebase please and fix conflicts
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
@sever-sever rebased |
CI cannot build the packet
Could you rebase, please? |
1c4dc01
to
48df805
Compare
mac_address = f'--mac-address {gen_mac(name, addr_info, host_ident)}' | ||
|
||
return f'{container_base_cmd} --no-healthcheck --net {networks} {ip_param} {mac_address} {entrypoint} {image} {command} {command_arguments}'.strip() | ||
return f'{container_base_cmd} {healthcheck} --net {networks} {ip_param} {mac_address} {entrypoint} {image} {command} {command_arguments}'.strip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default behaviour is changed,
If we do not have any health-check
option, we used --no-healthcheck
, but now it will be ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue here is, the --no-healthcheck
was only added when using container networking, when host networking was used (see line 491) it wasn't.
So far I never encountered a container which defined health checks in the image by itself. I'd argue changing the default behaviour here to make it consistent regardless of which networking is used would be preferable.
CI integration ❌ failed! Details
|
Change summary
Adds config options for container health checks
Types of changes
Related Task(s)
https://vyos.dev/T6686
Related PR(s)
How to test / Smoketest result
Checklist: