MCPcopy Create free account
hub / github.com/eksctl-io/eksctl / GetClusterStackIfExists

Method GetClusterStackIfExists

pkg/cfn/manager/api.go:665–671  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

663}
664
665func (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
673func (c *StackCollection) HasClusterStackFromList(ctx context.Context, clusterStackNames []string, clusterName string) (bool, error) {
674 stack, err := c.getClusterStackFromList(ctx, clusterStackNames, clusterName)

Callers

nothing calls this directly

Calls 2

ListClusterStackNamesMethod · 0.95

Tested by

no test coverage detected