Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigKind = "ProvisioningRequestConfig" ControllerName = "kueue.x-k8s.io/provisioning-request" ConsumesAnnotationKey = "cluster-autoscaler.kubernetes.io/consume-provisioning-request" ClassNameAnnotationKey = "cluster-autoscaler.kubernetes.io/provisioning-class-name" CheckInactiveMessage = "the check is not active" NoRequestNeeded = "the provisioning request is not needed" )
View Source
const ( RequestsOwnedByWorkloadKey = "metadata.ownedByWorkload" WorkloadsWithAdmissionCheckKey = "status.admissionChecks" AdmissionCheckUsingConfigKey = "spec.provisioningRequestConfig" )
Variables ¶
View Source
var ( MaxRetries int32 = 3 MinBackoffSeconds int32 = 60 )
Functions ¶
func SetupIndexer ¶
func SetupIndexer(ctx context.Context, indexer client.FieldIndexer) error
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(client client.Client, record record.EventRecorder) (*Controller, error)
func (*Controller) Reconcile ¶
func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*Controller) SetupWithManager ¶
func (c *Controller) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.