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

Backport of chore(nodepool): Go stdlib vars for HTTP methods and status codes into release/1.6.x #18065

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #18061 to be assessed for backporting due to the inclusion of the label backport/1.6.x.

The below text is copied from the body of the original PR.


Split node pool related changes from #17968 to a separate PR. Makes backporting these changes easier.

What

  • Modify net/http related calls to consistently use HTTP methods and response codes from variables/constants provided by the pkg.

Why

Some parts of the codebase already use these. With this PR, better code consistency and reliability.

@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 0225c8c into release/1.6.x Jul 26, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/chore/usestdlibvars-nodepool/moderately-enjoyed-akita branch from eb77494 to 4fedbbb Compare July 26, 2023 13:23
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/chore/usestdlibvars-nodepool/moderately-enjoyed-akita branch July 26, 2023 13:23
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.

2 participants