Skip to content

Add HOST_IP environment variable to consul_dataplane_sidecar.go#4277

Merged
nathancoleman merged 10 commits intomainfrom
woz5999/sidecar-host-ip
Aug 30, 2024
Merged

Add HOST_IP environment variable to consul_dataplane_sidecar.go#4277
nathancoleman merged 10 commits intomainfrom
woz5999/sidecar-host-ip

Conversation

@nathancoleman
Copy link
Copy Markdown
Member

Note

This is sourced from #3916. I needed to open here so that CI requiring tokens that are unavailable in forks can run

Changes proposed in this PR

  • Add HOST_IP environment variable to consul_dataplane_sidecar.go

This environment variable must be set in order to utilize HOST_IP as part of statsd or dogstatsd sinks. If this variable is unset and the sink is configured to use HOST_IP, the sidecar won't start and pods won't come up healthy.

How I've tested this PR

  • Unit tests
  • Deployed and tested a local build to our cluster and confirmed that injected pods now come up healthy and have the HOST_IP variable set as expected

How I expect reviewers to test this PR

  • The unit tests should do it

    Reference to similar change for mesh-gateway deployments:

Checklist

woz5999 and others added 9 commits April 16, 2024 14:07
This environment variable must be set in order to utilize HOST_IP as part of statsd or dogstatsd sinks. If this variable is unset and the sink is configured to use HOST_IP, the sidecar won't start and pods won't coe up healthy.
Co-authored-by: Nathan Coleman <nathandanielcoleman@gmail.com>
@nathancoleman nathancoleman added backport/1.1.x Backport to release/1.1.x branch backport/1.3.x This release branch is no longer active. backport/1.4.x This release branch is no longer active. backport/1.5.x This release branch is no longer active. labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.1.x Backport to release/1.1.x branch backport/1.3.x This release branch is no longer active. backport/1.4.x This release branch is no longer active. backport/1.5.x This release branch is no longer active.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants