mirror of https://github.com/docker/cli.git
Fix some typo
Signed-off-by: Xiaodong Zhang <a4012017@sina.com>
This commit is contained in:
parent
ce4a9f8311
commit
f8e04011e4
|
@ -107,7 +107,7 @@ func RunServices(dockerCli *KubeCli, opts options.Services) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert Replicas sets and kubernetes services to swam services and formatter informations
|
// Convert Replicas sets and kubernetes services to swarm services and formatter information
|
||||||
services, info, err := convertToServices(replicasList, daemonsList, servicesList)
|
services, info, err := convertToServices(replicasList, daemonsList, servicesList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -85,7 +85,7 @@ func (s *stackV1Beta1) IsColliding(servicesClient corev1.ServiceInterface, st St
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// verify checks wether the service is already present in kubernetes.
|
// verify checks whether the service is already present in kubernetes.
|
||||||
// If we find the service by name but it doesn't have our label or it has a different value
|
// If we find the service by name but it doesn't have our label or it has a different value
|
||||||
// than the stack name for the label, we fail (i.e. it will collide)
|
// than the stack name for the label, we fail (i.e. it will collide)
|
||||||
func verify(services corev1.ServiceInterface, stackName string, service string) error {
|
func verify(services corev1.ServiceInterface, stackName string, service string) error {
|
||||||
|
|
|
@ -46,7 +46,7 @@ func deployFullStack(t *testing.T, orchestrator, stackname string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func cleanupFullStack(t *testing.T, orchestrator, stackname string) {
|
func cleanupFullStack(t *testing.T, orchestrator, stackname string) {
|
||||||
// FIXME(vdemeester) we shouldn't have to do that. it is hidding a race on docker stack rm
|
// FIXME(vdemeester) we shouldn't have to do that. it is hiding a race on docker stack rm
|
||||||
poll.WaitOn(t, stackRm(orchestrator, stackname), pollSettings)
|
poll.WaitOn(t, stackRm(orchestrator, stackname), pollSettings)
|
||||||
poll.WaitOn(t, taskCount(orchestrator, stackname, 0), pollSettings)
|
poll.WaitOn(t, taskCount(orchestrator, stackname, 0), pollSettings)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue