Documentation
¶
Index ¶
- Constants
- func ManageUpdate(ctx context.Context, r client.Client, pool *tfv1.GPUPool, component Interface) (*ctrl.Result, error)
- type Client
- func (c *Client) DetectConfigChange(pool *tfv1.GPUPool, status *tfv1.PoolComponentStatus) (bool, string, string)
- func (c *Client) GetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool) string
- func (c *Client) GetName() string
- func (c *Client) GetResourcesInfo(r client.Client, ctx context.Context, pool *tfv1.GPUPool, configHash string) (int, int, bool, error)
- func (c *Client) GetUpdateInProgressInfo(pool *tfv1.GPUPool) string
- func (c *Client) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32
- func (c *Client) PerformBatchUpdate(r client.Client, ctx context.Context, pool *tfv1.GPUPool, delta int) (bool, error)
- func (c *Client) SetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool, time string)
- func (c *Client) SetConfigHash(status *tfv1.PoolComponentStatus, hash string)
- func (c *Client) SetUpdateInProgressInfo(pool *tfv1.GPUPool, hash string)
- func (c *Client) SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32)
- type ClientPodsByCreationTimestamp
- type GPUNodeByCreationTimestamp
- type Hypervisor
- func (h *Hypervisor) DetectConfigChange(pool *tfv1.GPUPool, status *tfv1.PoolComponentStatus) (bool, string, string)
- func (h *Hypervisor) GetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool) string
- func (h *Hypervisor) GetName() string
- func (h *Hypervisor) GetResourcesInfo(r client.Client, ctx context.Context, pool *tfv1.GPUPool, configHash string) (int, int, bool, error)
- func (h *Hypervisor) GetUpdateInProgressInfo(pool *tfv1.GPUPool) string
- func (h *Hypervisor) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32
- func (h *Hypervisor) PerformBatchUpdate(r client.Client, ctx context.Context, pool *tfv1.GPUPool, delta int) (bool, error)
- func (h *Hypervisor) SetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool, time string)
- func (h *Hypervisor) SetConfigHash(status *tfv1.PoolComponentStatus, hash string)
- func (h *Hypervisor) SetUpdateInProgressInfo(pool *tfv1.GPUPool, hash string)
- func (h *Hypervisor) SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32)
- type Interface
- type TensorFusionWorkloadByCreationTimestamp
- type Worker
- func (w *Worker) DetectConfigChange(pool *tfv1.GPUPool, status *tfv1.PoolComponentStatus) (bool, string, string)
- func (w *Worker) GetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool) string
- func (w *Worker) GetName() string
- func (w *Worker) GetResourcesInfo(r client.Client, ctx context.Context, pool *tfv1.GPUPool, configHash string) (int, int, bool, error)
- func (w *Worker) GetUpdateInProgressInfo(pool *tfv1.GPUPool) string
- func (w *Worker) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32
- func (w *Worker) PerformBatchUpdate(r client.Client, ctx context.Context, pool *tfv1.GPUPool, delta int) (bool, error)
- func (w *Worker) SetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool, time string)
- func (w *Worker) SetConfigHash(status *tfv1.PoolComponentStatus, hash string)
- func (w *Worker) SetUpdateInProgressInfo(pool *tfv1.GPUPool, hash string)
- func (w *Worker) SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32)
Constants ¶
View Source
const ( ClientUpdateInProgressAnnotation = constants.Domain + "/client-update-in-progress" ClientBatchUpdateLastTimeAnnotation = constants.Domain + "/client-batch-update-last-time" )
View Source
const ( HypervisorUpdateInProgressAnnotation = constants.Domain + "/hypervisor-update-in-progress" HypervisorBatchUpdateLastTimeAnnotation = constants.Domain + "/hypervisor-batch-update-last-time" )
View Source
const ( WorkerUpdateInProgressAnnotation = constants.Domain + "/worker-update-in-progress" WorkerBatchUpdateLastTimeAnnotation = constants.Domain + "/worker-batch-update-last-time" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DetectConfigChange ¶
func (*Client) GetBatchUpdateLastTimeInfo ¶
func (*Client) GetResourcesInfo ¶
func (*Client) GetUpdateInProgressInfo ¶
func (*Client) GetUpdateProgress ¶
func (c *Client) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32
func (*Client) PerformBatchUpdate ¶
func (*Client) SetBatchUpdateLastTimeInfo ¶
func (*Client) SetConfigHash ¶
func (c *Client) SetConfigHash(status *tfv1.PoolComponentStatus, hash string)
func (*Client) SetUpdateInProgressInfo ¶
func (*Client) SetUpdateProgress ¶
func (c *Client) SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32)
type ClientPodsByCreationTimestamp ¶
func (ClientPodsByCreationTimestamp) Len ¶
func (o ClientPodsByCreationTimestamp) Len() int
func (ClientPodsByCreationTimestamp) Less ¶
func (o ClientPodsByCreationTimestamp) Less(i, j int) bool
func (ClientPodsByCreationTimestamp) Swap ¶
func (o ClientPodsByCreationTimestamp) Swap(i, j int)
type GPUNodeByCreationTimestamp ¶
func (GPUNodeByCreationTimestamp) Len ¶
func (o GPUNodeByCreationTimestamp) Len() int
func (GPUNodeByCreationTimestamp) Less ¶
func (o GPUNodeByCreationTimestamp) Less(i, j int) bool
func (GPUNodeByCreationTimestamp) Swap ¶
func (o GPUNodeByCreationTimestamp) Swap(i, j int)
type Hypervisor ¶
type Hypervisor struct {
// contains filtered or unexported fields
}
func (*Hypervisor) DetectConfigChange ¶
func (h *Hypervisor) DetectConfigChange(pool *tfv1.GPUPool, status *tfv1.PoolComponentStatus) (bool, string, string)
func (*Hypervisor) GetBatchUpdateLastTimeInfo ¶
func (h *Hypervisor) GetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool) string
func (*Hypervisor) GetName ¶
func (h *Hypervisor) GetName() string
func (*Hypervisor) GetResourcesInfo ¶
func (*Hypervisor) GetUpdateInProgressInfo ¶
func (h *Hypervisor) GetUpdateInProgressInfo(pool *tfv1.GPUPool) string
func (*Hypervisor) GetUpdateProgress ¶
func (h *Hypervisor) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32
func (*Hypervisor) PerformBatchUpdate ¶
func (*Hypervisor) SetBatchUpdateLastTimeInfo ¶
func (h *Hypervisor) SetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool, time string)
func (*Hypervisor) SetConfigHash ¶
func (h *Hypervisor) SetConfigHash(status *tfv1.PoolComponentStatus, hash string)
func (*Hypervisor) SetUpdateInProgressInfo ¶
func (h *Hypervisor) SetUpdateInProgressInfo(pool *tfv1.GPUPool, hash string)
func (*Hypervisor) SetUpdateProgress ¶
func (h *Hypervisor) SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32)
type Interface ¶
type Interface interface { GetName() string DetectConfigChange(pool *tfv1.GPUPool, status *tfv1.PoolComponentStatus) (bool, string, string) SetConfigHash(status *tfv1.PoolComponentStatus, hash string) GetUpdateInProgressInfo(pool *tfv1.GPUPool) string SetUpdateInProgressInfo(pool *tfv1.GPUPool, hash string) GetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool) string SetBatchUpdateLastTimeInfo(pool *tfv1.GPUPool, time string) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32 SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32) GetResourcesInfo(r client.Client, ctx context.Context, pool *tfv1.GPUPool, hash string) (int, int, bool, error) PerformBatchUpdate(r client.Client, ctx context.Context, pool *tfv1.GPUPool, delta int) (bool, error) }
type TensorFusionWorkloadByCreationTimestamp ¶
type TensorFusionWorkloadByCreationTimestamp []*tfv1.TensorFusionWorkload
func (TensorFusionWorkloadByCreationTimestamp) Len ¶
func (o TensorFusionWorkloadByCreationTimestamp) Len() int
func (TensorFusionWorkloadByCreationTimestamp) Less ¶
func (o TensorFusionWorkloadByCreationTimestamp) Less(i, j int) bool
func (TensorFusionWorkloadByCreationTimestamp) Swap ¶
func (o TensorFusionWorkloadByCreationTimestamp) Swap(i, j int)
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) DetectConfigChange ¶
func (*Worker) GetBatchUpdateLastTimeInfo ¶
func (*Worker) GetResourcesInfo ¶
func (*Worker) GetUpdateInProgressInfo ¶
func (*Worker) GetUpdateProgress ¶
func (w *Worker) GetUpdateProgress(status *tfv1.PoolComponentStatus) int32
func (*Worker) PerformBatchUpdate ¶
func (*Worker) SetBatchUpdateLastTimeInfo ¶
func (*Worker) SetConfigHash ¶
func (w *Worker) SetConfigHash(status *tfv1.PoolComponentStatus, hash string)
func (*Worker) SetUpdateInProgressInfo ¶
func (*Worker) SetUpdateProgress ¶
func (w *Worker) SetUpdateProgress(status *tfv1.PoolComponentStatus, progress int32)
Click to show internal directories.
Click to hide internal directories.