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

api/agent: enable setting check thresholds in agent API #7949

Merged

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented May 22, 2020

api/agent: enable setting SuccessBeforePassing and FailuresBeforeCritical in API

Fixes #7764
Needed by hashicorp/nomad#6913

Until now these two fields could only be set through on-disk agent configuration.
This change adds the fields to the agent API struct definition so that they can
be set using the agent HTTP API.

…ical in API

Fixes #7764

Until now these two fields could only be set through on-disk agent configuration.
This change adds the fields to the agent API struct definition so that they can
be set using the agent HTTP API.
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

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

LGTM
This will require bumping the api-version.

@hanshasselberg hanshasselberg merged commit 95f46eb into master Jun 29, 2020
@hanshasselberg hanshasselberg deleted the b-add-check-thresholds-to-agent-check-registration branch June 29, 2020 12:52
@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit 95f46eb onto release/1.8.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Jun 29, 2020
…ical in API (#7949)

Fixes #7764

Until now these two fields could only be set through on-disk agent configuration.
This change adds the fields to the agent API struct definition so that they can
be set using the agent HTTP API.
@shantanugadgil
Copy link
Contributor

did this make it into Consul 1.8.1 ? (asking as I am unsure by just looking at the CHANGELOG) :)

@blake
Copy link
Member

blake commented Jul 31, 2020

@shantanugadgil Yes, it did make it into 1.8.1. Here's the relevant commit (8700976) on the release/1.8.1 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to set success_before_passing and failures_before_critical via agent endpoint
5 participants