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

servicedisco: implicit constraint for nomad v1.4 when using nsd checks #14868

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Oct 10, 2022

This PR adds a jobspec mutator to constrain jobs making use of checks
in the nomad service provider to nomad clients of at least v1.4.0.

Before, in a mixed client version cluster it was possible to submit
an NSD job making use of checks and for that job to land on an older,
incompatible client node.

Closes #14862

@shoenig shoenig changed the title [no ci] servicedisco: implicit constraint for nomad v1.4 when using nsd checks servicedisco: implicit constraint for nomad v1.4 when using nsd checks Oct 10, 2022
@shoenig shoenig added the backport/1.4.x backport to 1.4.x release line label Oct 10, 2022
This PR adds a jobspec mutator to constrain jobs making use of checks
in the nomad service provider to nomad clients of at least v1.4.0.

Before, in a mixed client version cluster it was possible to submit
an NSD job making use of checks and for that job to land on an older,
incompatible client node.

Closes #14862
Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

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

:shipit:

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.

LGTM!

Just noting to future readers, if we need to backport a fix for the NSD mutator in 1.3.X we will likely need two PRs to account for the updated use of go-set. This is fairly unlikely though I expect.

@github-actions
Copy link

github-actions bot commented Feb 9, 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 9, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nsd: add implicit Nomad version constraint for tasks which include checks
3 participants