Skip to content

Commit

Permalink
Update consul_dataplane_sidecar.go
Browse files Browse the repository at this point in the history
  • Loading branch information
woz5999 authored Apr 16, 2024
1 parent 6982b65 commit 63df118
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions control-plane/connect-inject/webhook/consul_dataplane_sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ func (w *MeshWebhook) consulDataplaneSidecar(namespace corev1.Namespace, pod cor
FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.uid"},
},
},
{
Name: "HOST_IP",
ValueFrom: &corev1.EnvVarSource{
FieldRef: &corev1.ObjectFieldSelector{FieldPath: "status.hostIP"},
},
},
{
Name: "DP_CREDENTIAL_LOGIN_META",
Value: "pod=$(POD_NAMESPACE)/$(POD_NAME)",
Expand All @@ -159,6 +153,12 @@ func (w *MeshWebhook) consulDataplaneSidecar(namespace corev1.Namespace, pod cor
Name: "DP_CREDENTIAL_LOGIN_META2",
Value: "pod-uid=$(POD_UID)",
},
{
Name: "HOST_IP",
ValueFrom: &corev1.EnvVarSource{
FieldRef: &corev1.ObjectFieldSelector{FieldPath: "status.hostIP"},
},
},
},
VolumeMounts: []corev1.VolumeMount{
{
Expand Down

0 comments on commit 63df118

Please sign in to comment.