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

Get sidecar weights from node service if not specified #15112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mougams
Copy link

@mougams mougams commented Oct 24, 2022

Description

The sidecar service weight was set to default values if not specified by use in connect block of service definition. This patch aims of reusing the node service weights if no weights is specified from connect definition block or if defined to default one.

Testing & Reproduction steps

Test has been updated

Links

This PR is a refresh of #9335
And implements #9334

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

@mougams mougams requested a review from a team as a code owner October 24, 2022 10:03
@hashicorp-cla
Copy link

hashicorp-cla commented Oct 24, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added theme/config Relating to Consul Agent configuration, including reloading type/docs Documentation needs to be created/updated/clarified labels Oct 24, 2022
@trujillo-adam trujillo-adam requested a review from a team October 24, 2022 15:48
@@ -131,6 +131,7 @@ proxy.
- `port` - Defaults to being auto-assigned from a configurable
range specified by [`sidecar_min_port`](/docs/agent/config/config-files#sidecar_min_port)
and [`sidecar_max_port`](/docs/agent/config/config-files#sidecar_max_port).
- `weights` - Defaults to the parent weights.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- `weights` - Defaults to the parent weights.
- `weights` - Defaults to the weights of the parent service.

Slight variation to the wording to match the phrasing of the other items in the list.

Copy link
Author

Choose a reason for hiding this comment

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

Updated

Copy link
Contributor

@boruszak boruszak left a comment

Choose a reason for hiding this comment

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

I reviewed the edits to sidecar-service.mdx on behalf of consul-docs.

LGTM, approving on behalf of consul-docs.

The sidecar service weight was set to default values if not
specified by use in connect block of service definition.
This patch aims of reusing the node service weights if no weights
is specified from connect definition block or if defined to default one.
@github-actions
Copy link

This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions.

@github-actions github-actions bot added the meta/stale Automatically flagged for inactivity by stalebot label Dec 25, 2022
@jkirschner-hashicorp jkirschner-hashicorp added meta/staleproof Exempt from stalebot automation and removed meta/stale Automatically flagged for inactivity by stalebot labels Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta/staleproof Exempt from stalebot automation theme/config Relating to Consul Agent configuration, including reloading type/docs Documentation needs to be created/updated/clarified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants