Skip to content

Commit

Permalink
💎 Add Network Describer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Oct 8, 2020
1 parent 2e100d1 commit 9d903cd
Show file tree
Hide file tree
Showing 36 changed files with 1,236 additions and 1,713 deletions.
23 changes: 16 additions & 7 deletions cloud/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,8 @@ type Authorizer interface {
Authorizer() autorest.Authorizer
}

// ClusterDescriber is an interface which can get common Azure Cluster information
type ClusterDescriber interface {
Authorizer
ResourceGroup() string
ClusterName() string
Location() string
AdditionalTags() infrav1.Tags
// NetworkDescriber is an interface which can get common Azure Cluster Networking information.
type NetworkDescriber interface {
Vnet() *infrav1.VnetSpec
IsVnetManaged() bool
NodeSubnet() *infrav1.SubnetSpec
Expand All @@ -71,3 +66,17 @@ type ClusterDescriber interface {
NodeRouteTable() *infrav1.RouteTable
ControlPlaneRouteTable() *infrav1.RouteTable
}

// ClusterDescriber is an interface which can get common Azure Cluster information.
type ClusterDescriber interface {
Authorizer
ResourceGroup() string
ClusterName() string
Location() string
AdditionalTags() infrav1.Tags
}

type ClusterScoper interface {
ClusterDescriber
NetworkDescriber
}
Loading

0 comments on commit 9d903cd

Please sign in to comment.