Skip to content

Commit

Permalink
Changed the metadata url and healthcheck port
Browse files Browse the repository at this point in the history
  • Loading branch information
Prachi Damle authored and Prachi Damle committed Apr 13, 2016
1 parent 9fdf7be commit 55603bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var (
router = mux.NewRouter()
healtcheckPort = ":4000"
healtcheckPort = ":1000"
)

func startHealthcheck() {
Expand Down
14 changes: 0 additions & 14 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ func setEnv() {
}
m = mClient

cattleUrl := os.Getenv("CATTLE_URL")
if len(cattleUrl) == 0 {
logrus.Fatalf("CATTLE_URL is not set")
}

cattleApiKey := os.Getenv("CATTLE_ACCESS_KEY")
if len(cattleApiKey) == 0 {
logrus.Fatalf("CATTLE_ACCESS_KEY is not set")
}

cattleSecretKey := os.Getenv("CATTLE_SECRET_KEY")
if len(cattleSecretKey) == 0 {
logrus.Fatalf("CATTLE_SECRET_KEY is not set")
}
}

func main() {
Expand Down
2 changes: 1 addition & 1 deletion metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
metadataUrl = "http://localhost:90/latest"
metadataUrl = "http://rancher-metadata/latest"
)

type MetadataClient struct {
Expand Down

0 comments on commit 55603bf

Please sign in to comment.