provisioning

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigKind            = "ProvisioningRequestConfig"
	ControllerName        = "kueue.x-k8s.io/provisioning-request"
	ConsumesAnnotationKey = "cluster-autoscaler.kubernetes.io/consume-provisioning-request"

	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 GetProvisioningRequestName

func GetProvisioningRequestName(workloadName, checkName string, attempt int32) string

func ServerSupportsProvisioningRequest

func ServerSupportsProvisioningRequest(mgr manager.Manager) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL