Skip to content

Commit

Permalink
Merge pull request #19 from oscp/feature/internal-registry-fix
Browse files Browse the repository at this point in the history
The registry service ip parameter is now optional.
  • Loading branch information
c0desurfer authored Jul 3, 2019
2 parents 7565ca2 + fe51763 commit 954314c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions daemon/client/checks/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ func CheckHttpHaProxy(publicUrl string, slow bool) error {
}

func CheckRegistryHealth(ip string) error {
if len(ip) == 0 {
return nil
}

log.Println("Checking registry health")

if err := checkHttp("http://" + ip + ":5000/healthz"); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions daemon/client/handlers/major.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func HandleMajorChecks(daemonType string, w http.ResponseWriter, r *http.Request
routerIps := os.Getenv("ROUTER_IPS")
certUrls := os.Getenv("CHECK_CERTIFICATE_URLS")

if len(etcdIps) == 0 || len(registryIp) == 0 || len(routerIps) == 0 || len(certUrls) == 0 {
log.Fatal("env variables 'ETCD_IPS', 'REGISTRY_SVC_IP', 'ROUTER_IPS', 'CHECK_CERTIFICATE_URLS' must be specified on type 'MASTER'")
if len(etcdIps) == 0 || len(routerIps) == 0 || len(certUrls) == 0 {
log.Fatal("env variables 'ETCD_IPS', 'ROUTER_IPS', 'CHECK_CERTIFICATE_URLS' must be specified on type 'MASTER'")
}

// boolean false means exclude buildnodes
Expand Down

0 comments on commit 954314c

Please sign in to comment.