@@ -17,7 +17,6 @@ import (
17
17
configapilatest "github.com/openshift/origin/pkg/cmd/server/apis/config/latest"
18
18
"github.com/openshift/origin/pkg/oc/bootstrap/docker/dockerhelper"
19
19
"github.com/openshift/origin/pkg/oc/bootstrap/docker/errors"
20
- "github.com/openshift/origin/pkg/oc/bootstrap/docker/exec"
21
20
"github.com/openshift/origin/pkg/oc/bootstrap/docker/openshift"
22
21
"github.com/openshift/origin/pkg/oc/cli/util/clientcmd"
23
22
)
@@ -112,39 +111,6 @@ func (c *ClientStatusConfig) Status(f *clientcmd.Factory, out io.Writer) error {
112
111
113
112
fmt .Fprint (out , status (container , masterConfig ))
114
113
115
- notReady := 0
116
-
117
- eh := exec .NewExecHelper (dockerClient , openshift .ContainerName )
118
-
119
- stdout , _ , _ := eh .Command ("oc" , "get" , "dc" , "docker-registry" , "-n" , "default" , "-o" , "template" , "--template" , "{{.status.availableReplicas}}" ).Output ()
120
- if stdout != "1" {
121
- fmt .Fprintln (out , "Notice: Docker registry is not yet ready" )
122
- notReady ++
123
- }
124
-
125
- stdout , _ , _ = eh .Command ("oc" , "get" , "dc" , "router" , "-n" , "default" , "-o" , "template" , "--template" , "{{.status.availableReplicas}}" ).Output ()
126
- if stdout != "1" {
127
- fmt .Fprintln (out , "Notice: Router is not yet ready" )
128
- notReady ++
129
- }
130
-
131
- stdout , _ , _ = eh .Command ("oc" , "get" , "job" , "persistent-volume-setup" , "-n" , "default" , "-o" , "template" , "--template" , "{{.status.succeeded}}" ).Output ()
132
- if stdout != "1" {
133
- fmt .Fprintln (out , "Notice: Persistent volumes are not yet ready" )
134
- notReady ++
135
- }
136
-
137
- stdout , _ , _ = eh .Command ("oc" , "get" , "is" , "-n" , "openshift" , "-o" , "template" , "--template" , `{{range .items}}{{if not .status.tags}}notready{{end}}{{end}}` ).Output ()
138
- if len (stdout ) > 0 {
139
- fmt .Fprintln (out , "Notice: Imagestreams are not yet ready" )
140
- notReady ++
141
- }
142
-
143
- if notReady > 0 {
144
- fmt .Fprintf (out , "\n Notice: %d OpenShift component(s) are not yet ready (see above)\n " , notReady )
145
- return fmt .Errorf ("" )
146
- }
147
-
148
114
return nil
149
115
}
150
116
0 commit comments