Skip to content

Commit

Permalink
Merge pull request #984 from CecileRobertMichon/network-describer
Browse files Browse the repository at this point in the history
Add Network Describer interface
  • Loading branch information
k8s-ci-robot authored Oct 9, 2020
2 parents 3b5ed13 + f621f73 commit a985e1e
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 a985e1e

Please sign in to comment.