Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Support passing extra arguments to injected envoy binary #675

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

ndhanushkodi
Copy link
Contributor

@ndhanushkodi ndhanushkodi commented Nov 6, 2020

When a user sets connectInject.envoyExtraArgs value, they can send
arguments to the injected envoy sidecar binary. For example, in a
development environment, we could consider enabling debug logs in all
sidecars.

Sample values file:

connectInject:
  enabled: true
  envoyExtraArgs: "--log-level debug --disable-hot-restart"

Corresponding consul-k8s PR: hashicorp/consul-k8s#378

@ndhanushkodi ndhanushkodi requested review from ishustava, a team and lkysow and removed request for a team November 6, 2020 01:23
Copy link
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

This looks great 🎉

The one thing that this needs is to add this new value to the values.yaml and document it with a comment, e.g. connectInject.imageConsul. This is the pattern we've been using with our helm chart for all other values and so I think we should follow it. We'll also need a changelog entry.

test/unit/connect-inject-deployment.bats Outdated Show resolved Hide resolved
Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

Looks good, I haven't tested it. Will wait to see wording on values.yaml docs.

test/unit/connect-inject-deployment.bats Outdated Show resolved Hide resolved
@ndhanushkodi
Copy link
Contributor Author

Thanks for your comments! Re-requesting review for the changelog entry and values.yml comments.

Copy link
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

Looks great!!

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

🎉 great work!

When a user sets connectInject.envoyExtraArgs value, they can send
arguments to the injected envoy sidecar binary. For example, in a
development environment, we could consider enabling debug logs in all
sidecars.

Usage:
```
connectInject:
  enabled: true
  envoyExtraArgs: "--log-level debug --disable-hot-restart"
```
@ndhanushkodi ndhanushkodi merged commit 88e5b73 into master Nov 9, 2020
@ndhanushkodi ndhanushkodi deleted the extra-envoy-args branch November 9, 2020 16:42
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.

3 participants