-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Permit Consul Connect Gateways to be used with podman #20611
Conversation
b830206
to
a343708
Compare
a343708
to
99042e6
Compare
Enable use of Consul Connect Gateways (ingresss/terminating/mesh) with podman task driver. task driver for Connect-enabled tasks for sidecar services which used podman if any other task in the same task group was using podman or fell back to docker otherwise. That PR did not consider consul connect gateways, which remained hardcoded to using docker task driver always. This change applies the same heuristic also to gateway tasks, enabling use of podman. Limitations: The heuristic only works where the task group containing the gateway also contains a podman task. Therefore it does not work for the ingress example in the docs (https://developer.hashicorp.com/nomad/docs/job-specification/gateway#ingress-gateway) which uses connect native and requires the gateway be in a separate task.
Thanks @optiz0r! This LGTM. I'm going to rebase with main and add a changelog entry and then get this merged. |
@shoenig Thanks. I think I managed to fix the existing broken tests, but I haven't managed to add any tests to validate the new behaviour. |
99042e6
to
0cb1b76
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Enable use of Consul Connect Gateways (ingresss/terminating/mesh) with podman task driver.
task driver for Connect-enabled tasks for sidecar services which used podman if any other task in the same task group was using podman or fell back to docker otherwise.
That PR did not consider consul connect gateways, which remained hardcoded to using docker task driver always.
This change applies the same heuristic also to gateway tasks, enabling use of podman.
Limitations: The heuristic only works where the task group containing the gateway also contains a podman task. Therefore it does not work for the ingress example in the docs
(https://developer.hashicorp.com/nomad/docs/job-specification/gateway#ingress-gateway) which uses connect native and requires the gateway be in a separate task.
I've updated existing tests to assume the docker driver, but have not yet added any new tests to verify the auto-detection of podman.