resourceclaim

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 30 Imported by: 2

Documentation

Overview

Package resourceclaim implements the controller part of https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/3063-dynamic-resource-allocation

It was derived from the generic ephemeral volume controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller creates ResourceClaims for ResourceClaimTemplates in a pod spec.

func NewController

func NewController(
	logger klog.Logger,
	features Features,
	kubeClient clientset.Interface,
	podInformer v1informers.PodInformer,
	claimInformer resourceinformers.ResourceClaimInformer,
	templateInformer resourceinformers.ResourceClaimTemplateInformer) (*Controller, error)

NewController creates a ResourceClaim controller.

func (*Controller) Run

func (ec *Controller) Run(ctx context.Context, workers int)

type Features added in v1.33.0

type Features struct {
	AdminAccess     bool
	PrioritizedList bool
}

Features defines which features should be enabled in the controller.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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