Skip to content

Commit

Permalink
Update control-plane/connect-inject/container_init.go
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Kysow <[email protected]>
  • Loading branch information
thisisnotashwin and lkysow committed Nov 10, 2021
1 parent 7a4ab00 commit 71b60f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control-plane/connect-inject/container_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package connectinject

import (
"bytes"
"errors"
"fmt"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -125,7 +125,7 @@ func (h *Handler) containerInit(namespace corev1.Namespace, pod corev1.Pod) (cor
// the name of the env variable whose value is the ClusterIP of the Consul DNS Service.
consulDNSClusterIP = os.Getenv(h.constructDNSServiceHostName())
if consulDNSClusterIP == "" {
return corev1.Container{}, errors.New("failed to find ClusterIP for Consul DNS Service Host")
return corev1.Container{}, fmt.Errorf("environment variable %s is not found", h.constructDNSServiceHostName())
}
}

Expand Down

0 comments on commit 71b60f1

Please sign in to comment.