Skip to content

Commit

Permalink
Fix regex in describe-stacks, stop printng events by default
Browse files Browse the repository at this point in the history
- close #284
  • Loading branch information
errordeveloper committed Oct 26, 2018
1 parent 98cccfe commit 8714f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cfn/manager/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (c *StackCollection) WaitDeleteStack(name string) error {

// DescribeStacks describes the existing stacks
func (c *StackCollection) DescribeStacks(name string) ([]*Stack, error) {
stacks, err := c.ListStacks(fmt.Sprintf("^(eksclt|EKS)-%s-((cluster|nodegroup)-\\d+|(VPC|ServiceRole|DefaultNodeGroup))$", name))
stacks, err := c.ListStacks(fmt.Sprintf("^(eksctl|EKS)-%s-((cluster|nodegroup-\\d+)|(VPC|ServiceRole|DefaultNodeGroup))$", name))
if err != nil {
return nil, errors.Wrapf(err, "describing CloudFormation stacks for %q", name)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/ctl/utils/describe_stacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func describeStacksCmd() *cobra.Command {
fs.StringVarP(&cfg.Profile, "profile", "p", "", "AWS credentials profile to use (overrides the AWS_PROFILE environment variable)")

fs.BoolVar(&utilsDescribeStackAll, "all", false, "include deleted stacks")
fs.BoolVar(&utilsDescribeStackEvents, "events", true, "include stack events")
fs.BoolVar(&utilsDescribeStackEvents, "events", false, "include stack events")

return cmd
}
Expand Down

0 comments on commit 8714f71

Please sign in to comment.