Documentation ¶
Index ¶
- func DeletePod(ctx context.Context, cli client.Client, namespace string, podName string) error
- func GetMatchingPods(ctx context.Context, cli client.Client, namespace, runnerScaleSetName string) ([]corev1.Pod, error)
- type PipelineInfo
- type RegistrationTokenResponse
- type RunnerScaleSetReconciler
- type ScaleSetList
- type ScaleSetStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PipelineInfo ¶
type RegistrationTokenResponse ¶
type RegistrationTokenResponse struct {
Token string `json:"token"`
}
type RunnerScaleSetReconciler ¶
RunnerScaleSetReconciler reconciles a RunnerScaleSet object
func (*RunnerScaleSetReconciler) Reconcile ¶
func (r *RunnerScaleSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the RunnerScaleSet object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile
func (*RunnerScaleSetReconciler) SetupWithManager ¶
func (r *RunnerScaleSetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ScaleSetList ¶
type ScaleSetList struct { Count int64 `json:"count"` Value []ScaleSetStatus `json:"value"` }
type ScaleSetStatus ¶
type ScaleSetStatus struct { AcquireJobsURL string `json:"acquireJobsUrl"` CreateSessionURL string `json:"createSessionUrl"` CreatedOn string `json:"createdOn"` Enabled bool `json:"enabled"` GetAcquirableJobsURL string `json:"getAcquirableJobsUrl"` ID int64 `json:"id"` Labels []struct { ID int64 `json:"id"` Name string `json:"name"` Type string `json:"type"` } `json:"labels"` Name string `json:"name"` QueueName string `json:"queueName"` RunnerGroupID int64 `json:"runnerGroupId"` RunnerGroupName string `json:"runnerGroupName"` RunnerJitConfigURL string `json:"runnerJitConfigUrl"` RunnerSetting struct { DisableUpdate bool `json:"disableUpdate"` Ephemeral bool `json:"ephemeral"` ID int64 `json:"id"` Name interface{} `json:"name"` RunnerGroupID interface{} `json:"runnerGroupId"` Status int64 `json:"status"` Version interface{} `json:"version"` } `json:"runnerSetting"` Statistics struct { TotalAcquiredJobs int64 `json:"totalAcquiredJobs"` TotalAssignedJobs int64 `json:"totalAssignedJobs"` TotalAvailableJobs int64 `json:"totalAvailableJobs"` TotalBusyRunners int64 `json:"totalBusyRunners"` TotalIdleRunners int64 `json:"totalIdleRunners"` TotalRegisteredRunners int64 `json:"totalRegisteredRunners"` TotalRunningJobs int64 `json:"totalRunningJobs"` } `json:"statistics"` Status string `json:"status"` }
Click to show internal directories.
Click to hide internal directories.