Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeb committed Apr 26, 2024
1 parent bd4b017 commit b5af4c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testutil/inject_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (iv *InjectValidator) validateProxyContainer(pod *v1.PodSpec) error {
}

if iv.AdminPort != 0 {
if err := iv.validateEnvVar(proxyContainer, "LINKERD2_PROXY_ADMIN_LISTEN_ADDR", fmt.Sprintf("0.0.0.0:%d", iv.AdminPort)); err != nil {
if err := iv.validateEnvVar(proxyContainer, "LINKERD2_PROXY_ADMIN_LISTEN_ADDR", fmt.Sprintf("[::]:%d", iv.AdminPort)); err != nil {
return err
}
if proxyContainer.LivenessProbe.HTTPGet.Port.IntVal != int32(iv.AdminPort) {
Expand All @@ -122,7 +122,7 @@ func (iv *InjectValidator) validateProxyContainer(pod *v1.PodSpec) error {
}

if iv.ControlPort != 0 {
if err := iv.validateEnvVar(proxyContainer, "LINKERD2_PROXY_CONTROL_LISTEN_ADDR", fmt.Sprintf("0.0.0.0:%d", iv.ControlPort)); err != nil {
if err := iv.validateEnvVar(proxyContainer, "LINKERD2_PROXY_CONTROL_LISTEN_ADDR", fmt.Sprintf("[::]:%d", iv.ControlPort)); err != nil {
return err
}
}
Expand All @@ -140,7 +140,7 @@ func (iv *InjectValidator) validateProxyContainer(pod *v1.PodSpec) error {
}

if iv.InboundPort != 0 {
if err := iv.validateEnvVar(proxyContainer, "LINKERD2_PROXY_INBOUND_LISTEN_ADDR", fmt.Sprintf("0.0.0.0:%d", iv.InboundPort)); err != nil {
if err := iv.validateEnvVar(proxyContainer, "LINKERD2_PROXY_INBOUND_LISTEN_ADDR", fmt.Sprintf("[::]:%d", iv.InboundPort)); err != nil {
return err
}
if proxyContainer.LivenessProbe.HTTPGet.Port.IntVal != int32(iv.AdminPort) {
Expand Down

0 comments on commit b5af4c0

Please sign in to comment.