Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Aug 2, 2023
1 parent e2453bc commit 6a326ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/plural/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package plural

import (
"fmt"
"github.com/pluralsh/plural/pkg/bootstrap"
"os"
"path/filepath"
"strings"
Expand All @@ -11,6 +10,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/pluralsh/plural/pkg/api"
"github.com/pluralsh/plural/pkg/application"
"github.com/pluralsh/plural/pkg/bootstrap"
"github.com/pluralsh/plural/pkg/diff"
"github.com/pluralsh/plural/pkg/executor"
"github.com/pluralsh/plural/pkg/kubernetes"
Expand Down Expand Up @@ -196,6 +196,7 @@ func (p *Plural) deploy(c *cli.Context) error {
if err != nil {
return err
}

fmt.Printf("Deploying applications [%s] in topological order\n\n", strings.Join(sorted, ", "))

ignoreConsole := c.Bool("ignore-console")
Expand Down
2 changes: 2 additions & 0 deletions pkg/bootstrap/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
clusterapi "sigs.k8s.io/cluster-api/api/v1beta1"
)

// CheckClusterReadiness checks if Cluster API cluster is in ready state.
func CheckClusterReadiness(name, namespace string) bool {
prov, err := provider.GetProvider()
if err != nil {
Expand Down Expand Up @@ -51,6 +52,7 @@ func CheckClusterReadiness(name, namespace string) bool {
return false
}

// CheckClusterReadinessWithRetries checks (possibly multiple times) if Cluster API cluster is in ready state.
func CheckClusterReadinessWithRetries(name, namespace string, retries int, sleep time.Duration, log bool) bool {
if log {
utils.Highlight("Checking cluster status...\n")
Expand Down

0 comments on commit 6a326ba

Please sign in to comment.