Documentation ¶
Overview ¶
Package cluster contains code for syncing cluster
Index ¶
- Constants
- func StartClusterController(config *restclient.Config, stopChan <-chan struct{}, ...)
- type ClusterClient
- type ClusterController
- func (cc *ClusterController) GetClusterClient(cluster *federationv1beta1.Cluster) (*ClusterClient, error)
- func (cc *ClusterController) GetClusterStatus(cluster *federationv1beta1.Cluster) (*federationv1beta1.ClusterStatus, error)
- func (cc *ClusterController) Run(stopChan <-chan struct{})
- func (cc *ClusterController) UpdateClusterStatus() error
Constants ¶
View Source
const (
UserAgentName = "Cluster-Controller"
)
Variables ¶
This section is empty.
Functions ¶
func StartClusterController ¶ added in v1.7.1
func StartClusterController(config *restclient.Config, stopChan <-chan struct{}, clusterMonitorPeriod time.Duration)
StartClusterController starts a new cluster controller
Types ¶
type ClusterClient ¶
type ClusterClient struct {
// contains filtered or unexported fields
}
func NewClusterClientSet ¶
func NewClusterClientSet(c *federation_v1beta1.Cluster) (*ClusterClient, error)
func (*ClusterClient) GetClusterHealthStatus ¶
func (self *ClusterClient) GetClusterHealthStatus() *federation_v1beta1.ClusterStatus
GetClusterHealthStatus gets the kubernetes cluster health status by requesting "/healthz"
func (*ClusterClient) GetClusterZones ¶
func (self *ClusterClient) GetClusterZones() (zones []string, region string, err error)
GetClusterZones gets the kubernetes cluster zones and region by inspecting labels on nodes in the cluster.
type ClusterController ¶
type ClusterController struct {
// contains filtered or unexported fields
}
func (*ClusterController) GetClusterClient ¶ added in v1.7.1
func (cc *ClusterController) GetClusterClient(cluster *federationv1beta1.Cluster) (*ClusterClient, error)
func (*ClusterController) GetClusterStatus ¶
func (cc *ClusterController) GetClusterStatus(cluster *federationv1beta1.Cluster) (*federationv1beta1.ClusterStatus, error)
func (*ClusterController) Run ¶
func (cc *ClusterController) Run(stopChan <-chan struct{})
Run begins watching and syncing.
func (*ClusterController) UpdateClusterStatus ¶
func (cc *ClusterController) UpdateClusterStatus() error
UpdateClusterStatus checks cluster status and get the metrics from cluster's restapi
Click to show internal directories.
Click to hide internal directories.