kubernetesk8s.io/kubernetes/pkg/registry/resource Index | Files | Directories

package resource

import "k8s.io/kubernetes/pkg/registry/resource"

Index

Functions

func AuthorizedForAdmin

func AuthorizedForAdmin(ctx context.Context, deviceRequests []resource.DeviceRequest, namespaceName string, nsClient v1.NamespaceInterface) field.ErrorList

AuthorizedForAdmin checks if the request is authorized to get admin access to devices based on namespace label

func AuthorizedForAdminStatus

func AuthorizedForAdminStatus(ctx context.Context, newAllocationResult, oldAllocationResult []resource.DeviceRequestAllocationResult, namespaceName string, nsClient v1.NamespaceInterface) field.ErrorList

AuthorizedForAdminStatus checks if the request status is authorized to get admin access to devices based on namespace label

Source Files

utils.go

Directories

PathSynopsis
pkg/registry/resource/deviceclass
pkg/registry/resource/deviceclass/storage
pkg/registry/resource/devicetaintrule
pkg/registry/resource/devicetaintrule/storage
pkg/registry/resource/resourceclaim
pkg/registry/resource/resourceclaim/storage
pkg/registry/resource/resourceclaimtemplate
pkg/registry/resource/resourceclaimtemplate/storage
pkg/registry/resource/resourceslice
pkg/registry/resource/resourceslice/storage
pkg/registry/resource/rest
Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
3 hours ago

Tools for package owners.