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

Fix bug where upstream env vars not set #550

Merged
merged 2 commits into from
Jul 6, 2021
Merged

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Jul 5, 2021

Fixes issue where we weren't setting the upstream environment variables
when the upstream annotation was set:

  • <NAME>_CONNECT_SERVICE_HOST
  • <NAME>_CONNECT_SERVICE_PORT

Since we're modifying a slice's values during iteration we must access
the element via reference using the index.

Fixes #549

How I've tested this PR:

  • unit tests

How I expect reviewers to test this PR:

  • code

Checklist:

  • Tests added
  • CHANGELOG entry added (HashiCorp engineers only, community PRs should not add a changelog entry)

lkysow added 2 commits July 5, 2021 10:50
Fixes issue where we weren't setting the upstream environment variables
when the upstream annotation was set:
* <NAME>_CONNECT_SERVICE_HOST
* <NAME>_CONNECT_SERVICE_PORT

Since we're modifying a slice's values during iteration we must access
the element via reference using the index.
@lkysow lkysow requested review from a team, kschoche and sadjamz and removed request for a team July 5, 2021 17:55
Copy link
Contributor

@thisisnotashwin thisisnotashwin left a comment

Choose a reason for hiding this comment

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

good catch!

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.

Upstream environment variables not being set
4 participants