From 9c01e41adfd8c4927a70f436b4c807b7fc40ce74 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Guillaume Date: Fri, 5 Nov 2021 16:23:58 +0100 Subject: [PATCH] Fix typo in --wait option mechanism Signed-off-by: Pierre-Antoine Guillaume --- pkg/compose/convergence.go | 4 ++-- pkg/compose/start.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/compose/convergence.go b/pkg/compose/convergence.go index 80d143a57..8a2e2fab6 100644 --- a/pkg/compose/convergence.go +++ b/pkg/compose/convergence.go @@ -261,7 +261,7 @@ func getContainerProgressName(container moby.Container) string { return "Container " + getCanonicalContainerName(container) } -const ServiceConditionRuningOrHealthy = "running_or_healthy" +const ServiceConditionRunningOrHealthy = "running_or_healthy" func (s *composeService) waitDependencies(ctx context.Context, project *types.Project, dependencies types.DependsOnConfig) error { eg, _ := errgroup.WithContext(ctx) @@ -273,7 +273,7 @@ func (s *composeService) waitDependencies(ctx context.Context, project *types.Pr for { <-ticker.C switch config.Condition { - case ServiceConditionRuningOrHealthy: + case ServiceConditionRunningOrHealthy: healthy, err := s.isServiceHealthy(ctx, project, dep, true) if err != nil { return err diff --git a/pkg/compose/start.go b/pkg/compose/start.go index bdf43f743..3a2d912c9 100644 --- a/pkg/compose/start.go +++ b/pkg/compose/start.go @@ -69,7 +69,7 @@ func (s *composeService) start(ctx context.Context, project *types.Project, opti depends := types.DependsOnConfig{} for _, s := range project.Services { depends[s.Name] = types.ServiceDependency{ - Condition: ServiceConditionRuningOrHealthy, + Condition: ServiceConditionRunningOrHealthy, } } err = s.waitDependencies(ctx, project, depends)