Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Host string Port int ApiServer string AgentToken string ClusterID string ControllerMode bool AgentMode bool )
View Source
var ( HeartbeatIntervalSeconds = 10 HeartbeatTimeoutSeconds = 30 )
Cluster lifecycle
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { Client client.Client Cluster *hackathonv1.CustomCluster Recorder record.EventRecorder Log logr.Logger }
func (*Driver) InitCustomCluster ¶
type Server ¶
type Server struct { }
func (*Server) GetClusterInfo ¶
func (s *Server) GetClusterInfo(status types.ClusterStatus) (*v1.CustomCluster, types.ClusterStatus, error)
func (*Server) HandleHeartbeat ¶
type Status ¶
type Status struct { *event.Recorder Cluster *hackathonv1.CustomCluster Status *hackathonv1.CustomClusterStatus }
func NewStatus ¶
func NewStatus(cluster *hackathonv1.CustomCluster) *Status
func (*Status) Apply ¶
func (s *Status) Apply() ([]event.Event, *hackathonv1.CustomCluster)
Click to show internal directories.
Click to hide internal directories.