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 7, 2020
1 parent 2e100d1 commit 5605d06
Show file tree
Hide file tree
Showing 40 changed files with 1,193 additions and 1,753 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 {
ResourceGroup() string
ClusterName() string
Location() string
AdditionalTags() infrav1.Tags
}

type ClusterScope interface {
Authorizer
ClusterDescriber
NetworkDescriber
}
Loading

0 comments on commit 5605d06

Please sign in to comment.