Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserAgentName = "Cluster-Controller" // Following labels come from k8s.io/kubernetes/pkg/kubelet/apis LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone" LabelZoneRegion = "failure-domain.beta.kubernetes.io/region" )
Variables ¶
This section is empty.
Functions ¶
func StartClusterController ¶
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 *fedv1a1.FederatedCluster, kubeClient kubeclientset.Interface, crClient crclientset.Interface) (*ClusterClient, error)
func (*ClusterClient) GetClusterHealthStatus ¶
func (self *ClusterClient) GetClusterHealthStatus() *fedv1a1.FederatedClusterStatus
GetClusterHealthStatus gets the kubernetes cluster health status by requesting "/healthz"
func (*ClusterClient) GetClusterZones ¶
func (self *ClusterClient) GetClusterZones() (zone, 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) Run ¶
func (cc *ClusterController) Run(stopChan <-chan struct{})
Run begins watching and syncing.
Click to show internal directories.
Click to hide internal directories.