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

consul: make failures_before_critical and success_before_passing work with group services #10764

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Jun 15, 2021

This PR fixes some job submission plumbing to make sure the Consul check parameters

  • failure_before_critical
  • success_before_passing

work with group-level services. They already work with task-level services. Took this opportunity to apply a todo refactoring to re-use common API->structs services copying helper.

Fixes #10678

… with group services

This PR fixes some job submission plumbing to make sure the Consul Check parameters
- failure_before_critical
- success_before_passing

work with group-level services. They already work with task-level services.
Copy link
Contributor

@isabeldepapel isabeldepapel left a comment

Choose a reason for hiding this comment

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

LGTM

}
}
}
structsTask.Services = ApiServicesToStructs(apiTask.Services)
Copy link
Contributor

Choose a reason for hiding this comment

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

So much cleaner 🎉

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -4,6 +4,7 @@ IMPROVEMENTS:
* cli: Added `-monitor` flag to `deployment status` command and automatically monitor deployments from `job run` command. [[GH-10661](https://github.com/hashicorp/nomad/pull/10661)]

BUG FIXES:
* consul: Fixed a bug where consul check parameters missing in group services [[GH-10764](https://github.com/hashicorp/nomad/pull/10764)]
Copy link
Member

Choose a reason for hiding this comment

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

Let's add this to the 1.0.8 changelog as well (below)

@vercel vercel bot temporarily deployed to Preview – nomad June 15, 2021 17:40 Inactive
@shoenig shoenig merged commit 52bf197 into main Jun 15, 2021
@shoenig shoenig deleted the b-passfail-lost branch June 15, 2021 17:41
@tgross tgross added this to the 1.1.2 milestone Jun 15, 2021
notnoop pushed a commit that referenced this pull request Jun 22, 2021
consul: make failures_before_critical and success_before_passing work with group services
@github-actions
Copy link

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 Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failures_before_critical does not get updated
4 participants