(ctx context.Context)
| 663 | } |
| 664 | |
| 665 | func (c *StackCollection) GetClusterStackIfExists(ctx context.Context) (*Stack, error) { |
| 666 | clusterStackNames, err := c.ListClusterStackNames(ctx) |
| 667 | if err != nil { |
| 668 | return nil, err |
| 669 | } |
| 670 | return c.getClusterStackFromList(ctx, clusterStackNames, c.spec.Metadata.Name) |
| 671 | } |
| 672 | |
| 673 | func (c *StackCollection) HasClusterStackFromList(ctx context.Context, clusterStackNames []string, clusterName string) (bool, error) { |
| 674 | stack, err := c.getClusterStackFromList(ctx, clusterStackNames, clusterName) |
nothing calls this directly
no test coverage detected