provisioning

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigKind                       = "ProvisioningRequestConfig"
	DeprecatedConsumesAnnotationKey  = "cluster-autoscaler.kubernetes.io/consume-provisioning-request"
	DeprecatedClassNameAnnotationKey = "cluster-autoscaler.kubernetes.io/provisioning-class-name"
	ConsumesAnnotationKey            = "autoscaling.x-k8s.io/consume-provisioning-request"
	ClassNameAnnotationKey           = "autoscaling.x-k8s.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

This section is empty.

Functions

func ProvisioningRequestName added in v0.8.0

func ProvisioningRequestName(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