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 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.