We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6378ff9 commit ee60d94Copy full SHA for ee60d94
1 file changed
aboutme/aboutme.go
@@ -53,7 +53,6 @@ type Me struct {
53
// a combination of environment variables and file paths to determine
54
// information about the cluster.
55
func FromEnv() (*Me, error) {
56
-
57
host := os.Getenv("KUBERNETES_SERVICE_HOST")
58
port := os.Getenv("KUBERNETES_SERVICE_PORT")
59
name := NameFromEnv()
@@ -76,7 +75,9 @@ func FromEnv() (*Me, error) {
76
75
}
77
me.c = client
78
79
- me.init()
+ if err := me.init(); err != nil {
+ return me, err
80
+ }
81
82
return me, nil
83
0 commit comments