You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm passing k8s node's host IP to an application via an environment variable and during intercept the variable's value doesn't get expanded. This happens consistently (which means the root cause is probably different than in #2853)
To Reproduce
Steps to reproduce the behavior:
I have a service with environment variable definitions:
An environment looking like this for the application container:
```yaml
- env:
- name: HOST
value: example.com
- name: URL
value: http://$(ALPHA):1234
```
would get this prefixed equivalent in the traffic-agent:
```yaml
- env:
- name: _TEL_APP_A_HOST
value: example.com
- name: _TEL_APP_A_URL
value: http://$(ALPHA):1234
```
which then resulted in an invalid value for `TEL_APP_A_URL` because
the `$(ALPHA)` was never prefixed.
This commit changes so that the last line of the traffic-agent env is:
```yaml
value: http://$(_TEL_APP_A_ALPHA):1234
```
Closes#3680
Signed-off-by: Thomas Hallgren <thomas@tada.se>
An environment looking like this for the application container:
```yaml
- env:
- name: HOST
value: example.com
- name: URL
value: http://$(HOST):1234
```
would get this prefixed equivalent in the traffic-agent:
```yaml
- env:
- name: _TEL_APP_A_HOST
value: example.com
- name: _TEL_APP_A_URL
value: http://$(HOST):1234
```
which then resulted in an invalid value for `TEL_APP_A_URL` because
the `$(HOST)` was never prefixed.
This commit changes so that the last line of the traffic-agent env is:
```yaml
value: http://$(_TEL_APP_A_HOST):1234
```
Closes#3680
Signed-off-by: Thomas Hallgren <thomas@tada.se>
Describe the bug
I'm passing k8s node's host IP to an application via an environment variable and during intercept the variable's value doesn't get expanded. This happens consistently (which means the root cause is probably different than in #2853)
To Reproduce
Steps to reproduce the behavior:
I have a service with environment variable definitions:
When I run
telepresence intercept
for the service$(HOST_IP)
inOTEL_EXPORTER_OTLP_ENDPOINT
doesn't get expanded, e.g.Expected behavior
Environment variable gets expanded into remote environment.
Versions (please complete the following information):
Output of
telepresence version
Operating system of workstation running
telepresence
commandsUbuntu 22.04
Kubernetes environment and Version [e.g. Minikube, bare metal, Google Kubernetes Engine]
Minikube v1.33.1
Additional information
Running a shell inside the same container I get:
app@ui-421a635a-7774989488-fb2gk:/app$ env | grep OTEL OTEL_EXPORTER_OTLP_ENDPOINT=http://192.168.49.2:4317
as expected
The text was updated successfully, but these errors were encountered: