Skip to content

Commit

Permalink
Add helper to list subnet topologies
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jan 15, 2019
1 parent 436e9de commit 8025247
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/apis/eksctl.io/v1alpha3/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ const (
SubnetTopologyPublic SubnetTopology = "Public"
)

// SubnetTopologies returns a list of topologies
func SubnetTopologies() []SubnetTopology {
return []SubnetTopology{
SubnetTopologyPrivate,
SubnetTopologyPublic,
}
}

// DefaultCIDR returns default global CIDR for VPC
func DefaultCIDR() ipnet.IPNet {
return ipnet.IPNet{
Expand Down

0 comments on commit 8025247

Please sign in to comment.