Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkController ¶
type NetworkController struct {
// contains filtered or unexported fields
}
func New ¶
func New(cloud cloudprovider.Interface, kubeClient clientset.Interface, clusterName string, namespace string) (*NetworkController, error)
New returns a new network controller to keep cloud provider network resource in sync with registry TODO: Currently only registry-to-cloud sync is performed. Is it necessary to perform the opposite sync? is network subject to change after creation?
func (*NetworkController) Run ¶
func (s *NetworkController) Run(workers int)
Run starts a background goroutine that watches for changes of networks and ensures they are created/deleted properly networkSyncPeriod controls how often we resync our store with cluster registry
It's an error to call Run() more than once for a given networkController object.
Click to show internal directories.
Click to hide internal directories.