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

checks: don't validate task/check compatibility for Connect services #14849

Closed
wants to merge 1 commit into from

Conversation

tgross
Copy link
Member

@tgross tgross commented Oct 7, 2022

Fixes #14822

In Nomad 1.4.0 we plumbed-through a task name to all checks in order to support native service discovery. For Connect tasks with a non-script/gRPC check, this triggers a validation error that setting the task name on a check isn't compatible with http/tpc checks. Normally this is correct behavior but for Connect tasks we need to include the task field. Bypass this validation for Connect services.

Note to reviewers: see my comment in #14822 (comment). I've tested that this fixes the immediate problem but I'm not familiar enough with the original changes for service disco checks yet to feel super confident that this is the right approach.

In Nomad 1.4.0 we plumbed-through a task name to all checks in order to support
native service discovery. For Connect tasks with a non-script/gRPC check, this
triggers a validation error that setting the task name on a check isn't
compatible with http/tpc checks. Normally this is correct behavior but for
Connect tasks we need to include the `task` field. Bypass this validation for
Connect services.
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

This LGTM, but I'd like to wait on merging until Seth has also taken a look. I think we'd also want a changelog entry before this is merged.

@shoenig
Copy link
Member

shoenig commented Oct 10, 2022

@tgross per #14822 (comment) I'm gonna open another PR that removes the assertion altogether

@tgross
Copy link
Member Author

tgross commented Oct 10, 2022

Closed in lieu of #14864

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.4.x backport to 1.4.x release line theme/consul/connect Consul Connect integration theme/service-discovery type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Services with a task defined fails if there are tcp/http checks
3 participants