const podResourceClaimIndex …
const podResourceClaimAnnotation …
const claimPodOwnerIndex …
const fieldManager …
const maxUIDCacheEntries …
type Controller …
const claimKeyPrefix …
const podKeyPrefix …
func NewController(
logger klog.Logger,
kubeClient clientset.Interface,
podInformer v1informers.PodInformer,
claimInformer resourceinformers.ResourceClaimInformer,
templateInformer resourceinformers.ResourceClaimTemplateInformer) (*Controller, error) { … }
func (ec *Controller) enqueuePod(logger klog.Logger, obj interface{ … }
func podNeedsClaims(pod *v1.Pod, deleted bool) (bool, string) { … }
func (ec *Controller) podNeedsWork(pod *v1.Pod) (bool, string) { … }
func (ec *Controller) enqueueResourceClaim(logger klog.Logger, obj interface{ … }
func (ec *Controller) Run(ctx context.Context, workers int) { … }
func (ec *Controller) runWorker(ctx context.Context) { … }
func (ec *Controller) processNextWorkItem(ctx context.Context) bool { … }
func (ec *Controller) syncHandler(ctx context.Context, key string) error { … }
func (ec *Controller) syncPod(ctx context.Context, namespace, name string) error { … }
func (ec *Controller) handleClaim(ctx context.Context, pod *v1.Pod, podClaim v1.PodResourceClaim, newPodClaims *map[string]string) error { … }
func (ec *Controller) findPodResourceClaim(pod *v1.Pod, podClaim v1.PodResourceClaim) (*resourceapi.ResourceClaim, error) { … }
func (ec *Controller) reserveForPod(ctx context.Context, pod *v1.Pod, claim *resourceapi.ResourceClaim) error { … }
func (ec *Controller) syncClaim(ctx context.Context, namespace, name string) error { … }
func owningPod(claim *resourceapi.ResourceClaim) (string, types.UID) { … }
func podResourceClaimIndexFunc(obj interface{ … }
func isPodDone(pod *v1.Pod) bool { … }
func claimPodOwnerIndexFunc(obj interface{ … }