Documentation ¶
Index ¶
- func ExportCluster(interval time.Duration, clusterName string, clusterCIDRs []string, ...) manager.Runnable
- func ExportEndpoints(interval time.Duration, getConnector types.EndpointGetter, ...) manager.Runnable
- func LoadEndpointsAndCommunities(interval time.Duration, store storepkg.Interface, ...) manager.Runnable
- func NewIPPool(clusterName, cidr string) calicoapi.IPPool
- func NewIPPoolKeeper(interval time.Duration, localClusterName string, cli client.Client, ...) manager.Runnable
- func Periodic(interval time.Duration, fn func(ctx context.Context)) manager.Runnable
- type GetEndpointsAndCommunitiesFunc
- type LocalClusterReporter
- type UpdateCluster
- type UpdateEndpointsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportCluster ¶ added in v0.7.0
func ExportCluster(interval time.Duration, clusterName string, clusterCIDRs []string, getConnector types.EndpointGetter, updateCluster UpdateCluster) manager.Runnable
ExportCluster is used to export cluster CIDRs and endpoints to host cluster
func ExportEndpoints ¶
func ExportEndpoints(interval time.Duration, getConnector types.EndpointGetter, updateEndpoints UpdateEndpointsFunc) manager.Runnable
func NewIPPoolKeeper ¶ added in v0.7.0
Types ¶
type GetEndpointsAndCommunitiesFunc ¶
type GetEndpointsAndCommunitiesFunc func() (apiserver.EndpointsAndCommunity, error)
type LocalClusterReporter ¶
type LocalClusterReporter struct { Cluster string ClusterCIDRs []string GetConnector types.EndpointGetter SyncInterval time.Duration Client client.Client Log logr.Logger }
LocalClusterReporter create or update cluster data in the cluster where controller is running
type UpdateCluster ¶ added in v0.7.0
type UpdateEndpointsFunc ¶
Click to show internal directories.
Click to hide internal directories.