Skip to content

Commit

Permalink
Make eksctl get clusters less verbose (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper authored and jstrachan committed Jul 24, 2018
1 parent 42035f7 commit ac1c864
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkg/eks/eks.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,14 @@ func (c *ClusterProvider) doListCluster(clusterName *string) error {
logger.Debug("cluster = %#v", output)
if *output.Cluster.Status == eks.ClusterStatusActive {
logger.Info("cluster = %#v", *output.Cluster)
stacks, err := c.ListReadyStacks(fmt.Sprintf("^EKS-%s-.*$", *clusterName))
if err != nil {
return errors.Wrapf(err, "listing CloudFormation stack for %q", *clusterName)
}
for _, s := range stacks {
logger.Info("stack = %#v", *s)
if logger.Level >= 4 {
stacks, err := c.ListReadyStacks(fmt.Sprintf("^EKS-%s-.*$", *clusterName))
if err != nil {
return errors.Wrapf(err, "listing CloudFormation stack for %q", *clusterName)
}
for _, s := range stacks {
logger.Debug("stack = %#v", *s)
}
}
}
return nil
Expand Down

0 comments on commit ac1c864

Please sign in to comment.