1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2025-06-14 18:53:35 +00:00

rebase: update K8s packages to v0.32.1

Update K8s packages in go.mod to v0.32.1

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M
2025-01-16 09:41:46 +05:30
committed by mergify[bot]
parent 5aef21ea4e
commit 7eb99fc6c9
2442 changed files with 273386 additions and 47788 deletions
go.modgo.sum
vendor
cel.dev
github.com
JeffAshton
Microsoft
containerd
coreos
cyphar
distribution
docker
euank
go-kmsg-parser
go-openapi
godbus
golang
groupcache
google
btree
cadvisor
cel-go
go-cmp
imdario
karrick
mistifyio
moby
opencontainers
go.etcd.io
go.uber.org
golang.org
k8s.io
api
admissionregistration
apps
autoscaling
batch
certificates
coordination
core
resource
storage
apiextensions-apiserver
pkg
apis
apiextensions
features
apimachinery
apiserver
pkg
admission
apis
authentication
authorization
cel
endpoints
features
registry
server
storage
util
apihelpers
flowcontrol
request
version
plugin
pkg
authorizer
webhook
client-go
applyconfigurations
admissionregistration
apiserverinternal
apps
autoscaling
batch
certificates
coordination
core
v1
apparmorprofile.goattachedvolume.goazurediskvolumesource.gocapabilities.goclustertrustbundleprojection.gocomponentcondition.gocomponentstatus.goconfigmap.goconfigmapenvsource.goconfigmapkeyselector.goconfigmapprojection.goconfigmapvolumesource.gocontainerport.gocontainerresizepolicy.gocontainerstaterunning.gocontainerstateterminated.goemptydirvolumesource.goendpointport.goendpoints.goephemeralcontainer.goevent.goeventseries.gohostpathvolumesource.gohttpgetaction.goimagevolumesource.golimitrange.golimitrangeitem.goloadbalanceringress.gomodifyvolumestatus.gonamespace.gonamespacecondition.gonamespacespec.gonamespacestatus.gonode.gonodeaddress.gonodecondition.gonodeselectorrequirement.gonodestatus.gopersistentvolume.gopersistentvolumeclaim.gopersistentvolumeclaimcondition.gopersistentvolumeclaimspec.gopersistentvolumeclaimstatus.gopersistentvolumeclaimtemplate.gopersistentvolumespec.gopersistentvolumestatus.gopod.gopodaffinityterm.gopodcondition.gopodos.gopodreadinessgate.gopodsecuritycontext.gopodspec.gopodstatus.gopodtemplate.gopodtemplatespec.goportstatus.goprobe.goreplicationcontroller.goreplicationcontrollercondition.goresourcehealth.goresourcequota.goresourcequotaspec.goresourcequotastatus.goresourcerequirements.goresourcestatus.goscopedresourceselectorrequirement.goseccompprofile.gosecret.gosecretenvsource.gosecretkeyselector.gosecretprojection.goservice.goserviceaccount.goserviceport.gotaint.gotoleration.gotopologyspreadconstraint.govolume.govolumemount.govolumemountstatus.govolumeresourcerequirements.go
discovery
events
extensions
flowcontrol
imagepolicy
internal
meta
networking
node
policy
rbac
resource
scheduling
storage
storagemigration
utils.go
dynamic
features
gentype
informers
admissionregistration
apiserverinternal
apps
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
generic.go
networking
node
policy
rbac
resource
scheduling
storage
storagemigration
kubernetes
clientset.go
fake
scheme
typed
admissionregistration
apiserverinternal
apps
authentication
authorization
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
networking
node
policy
rbac
resource
scheduling
storage
storagemigration
listers
admissionregistration
apiserverinternal
apps
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
networking
node
policy
rbac
resource
scheduling
storage
storagemigration
metadata
openapi
rest
testing
tools
transport
util
cloud-provider
component-base
component-helpers
node
topology
resource
storage
controller-manager
pkg
features
leadermigration
config
cri-api
cri-client
csi-translation-lib
dynamic-resource-allocation
kube-openapi
pkg
builder3
util
kube-scheduler
kubectl
pkg
scale
util
podutils
kubelet
kubernetes
pkg
api
v1
apis
capabilities
controller
features
kubelet
apis
cadvisor
checkpointmanager
cm
.mockery.yamlOWNERS
admission
cgroup_manager_linux.gocgroup_manager_unsupported.gocgroup_v1_manager_linux.gocgroup_v2_manager_linux.gocontainer_manager.gocontainer_manager_linux.gocontainer_manager_stub.gocontainer_manager_unsupported.gocontainer_manager_windows.go
containermap
cpumanager
devicemanager
doc.go
dra
fake_container_manager.gofake_internal_container_lifecycle.gofake_pod_container_manager.gohelpers.gohelpers_linux.gohelpers_unsupported.gointernal_container_lifecycle.gointernal_container_lifecycle_linux.gointernal_container_lifecycle_unsupported.gointernal_container_lifecycle_windows.go
memorymanager
node_container_manager_linux.gopod_container_manager_linux.gopod_container_manager_stub.goqos_container_manager_linux.go
resourceupdates
topologymanager
types.go
util
config
container
events
eviction
kuberuntime
lifecycle
metrics
pluginmanager
stats
status
types
util
winstats
probe
scheduler
OWNERS
apis
backend
eventhandlers.goextender.go
framework
metrics
profile
schedule_one.goscheduler.go
util
security
util
volume
test
third_party
pod-security-admission
utils
modules.txt
sigs.k8s.io
apiserver-network-proxy
konnectivity-client

@ -0,0 +1,80 @@
package cgroups
import (
"errors"
"github.com/opencontainers/runc/libcontainer/configs"
)
var (
// ErrDevicesUnsupported is an error returned when a cgroup manager
// is not configured to set device rules.
ErrDevicesUnsupported = errors.New("cgroup manager is not configured to set device rules")
// ErrRootless is returned by [Manager.Apply] when there is an error
// creating cgroup directory, and cgroup.Rootless is set. In general,
// this error is to be ignored.
ErrRootless = errors.New("cgroup manager can not access cgroup (rootless container)")
// DevicesSetV1 and DevicesSetV2 are functions to set devices for
// cgroup v1 and v2, respectively. Unless
// [github.com/opencontainers/runc/libcontainer/cgroups/devices]
// package is imported, it is set to nil, so cgroup managers can't
// manage devices.
DevicesSetV1 func(path string, r *configs.Resources) error
DevicesSetV2 func(path string, r *configs.Resources) error
)
type Manager interface {
// Apply creates a cgroup, if not yet created, and adds a process
// with the specified pid into that cgroup. A special value of -1
// can be used to merely create a cgroup.
Apply(pid int) error
// GetPids returns the PIDs of all processes inside the cgroup.
GetPids() ([]int, error)
// GetAllPids returns the PIDs of all processes inside the cgroup
// any all its sub-cgroups.
GetAllPids() ([]int, error)
// GetStats returns cgroups statistics.
GetStats() (*Stats, error)
// Freeze sets the freezer cgroup to the specified state.
Freeze(state configs.FreezerState) error
// Destroy removes cgroup.
Destroy() error
// Path returns a cgroup path to the specified controller/subsystem.
// For cgroupv2, the argument is unused and can be empty.
Path(string) string
// Set sets cgroup resources parameters/limits. If the argument is nil,
// the resources specified during Manager creation (or the previous call
// to Set) are used.
Set(r *configs.Resources) error
// GetPaths returns cgroup path(s) to save in a state file in order to
// restore later.
//
// For cgroup v1, a key is cgroup subsystem name, and the value is the
// path to the cgroup for this subsystem.
//
// For cgroup v2 unified hierarchy, a key is "", and the value is the
// unified path.
GetPaths() map[string]string
// GetCgroups returns the cgroup data as configured.
GetCgroups() (*configs.Cgroup, error)
// GetFreezerState retrieves the current FreezerState of the cgroup.
GetFreezerState() (configs.FreezerState, error)
// Exists returns whether the cgroup path exists or not.
Exists() bool
// OOMKillCount reports OOM kill count for the cgroup.
OOMKillCount() (uint64, error)
}