diff --git a/api/v1/egress.go b/api/v1/egress.go index 0286438..1d84028 100644 --- a/api/v1/egress.go +++ b/api/v1/egress.go @@ -277,6 +277,14 @@ func MutateInjection(pod *corev1.Pod, config *Config) error { }) } + // API_ENDPOINT + if apiEndpoint := config.GetAnnotation("api-endpoint"); apiEndpoint != "" { + qtapContainer.Env = append(qtapContainer.Env, corev1.EnvVar{ + Name: "ENDPOINT", + Value: apiEndpoint, + }) + } + // append to the list pod.Spec.Containers = append(pod.Spec.Containers, qtapContainer)