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 <1034429+lkysow@users.noreply.github.com>
  • Loading branch information
thisisnotashwin and lkysow authored Nov 10, 2021
1 parent 7a4ab00 commit f5dc220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/connect-inject/container_init.go
Original file line number Diff line number Diff line change
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 f5dc220

Please sign in to comment.