Skip to content

Commit 430d6d2

Browse files
committed
feat(pkg): update the pkg to latest and get ip using downward api
1 parent 4c01026 commit 430d6d2

3 files changed

Lines changed: 6 additions & 150 deletions

File tree

boot.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"text/template"
1414

1515
"github.com/deis/minio/src/healthsrv"
16-
"github.com/deis/pkg/aboutme"
1716
"github.com/deis/pkg/utils"
1817
minio "github.com/minio/minio-go"
1918
)
@@ -118,8 +117,6 @@ func newMinioClient(host, port, accessKey, accessSecret string, insecure bool) (
118117
}
119118

120119
func main() {
121-
pod, err := aboutme.FromEnv()
122-
checkError(err)
123120
key, access := readSecrets()
124121

125122
minioHost := os.Getenv("MINIO_HOST")
@@ -138,7 +135,7 @@ func main() {
138135

139136
secrets := []Secret{
140137
{
141-
Host: pod.IP,
138+
Host: os.Getenv("POD_IP"),
142139
KeyID: key,
143140
AccessKey: access,
144141
Region: "us-east-1",

glide.lock

Lines changed: 4 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ import:
1616
- package: gopkg.in/yaml.v2
1717
version: a83829b6f1293c91addabc89d0571c246397bbf4
1818
- package: github.com/deis/pkg
19-
version: f63d9718b86f17c9320f838fb3eb6039cadb9691
19+
version: 189ed6bd6b6aa6629b72c2c5472095e176eec8a6
2020
subpackages:
21-
- /aboutme
2221
- /utils
2322
- package: github.com/minio/minio-go
2423
version: c5884ce9ce3ac73b025d0bc58c4d3d72870edc0b

0 commit comments

Comments
 (0)