Merge pull request #7114 from kinvolk/rata/userns-cri
Update k8s.io/cri-api to v0.25.0-alpha2
This commit is contained in:
commit
1455926416
2
go.mod
2
go.mod
@ -70,7 +70,7 @@ require (
|
||||
k8s.io/apiserver v0.24.1
|
||||
k8s.io/client-go v0.24.1
|
||||
k8s.io/component-base v0.24.1
|
||||
k8s.io/cri-api v0.24.1
|
||||
k8s.io/cri-api v0.25.0-alpha.2
|
||||
k8s.io/klog/v2 v2.60.1
|
||||
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
|
||||
)
|
||||
|
4
go.sum
4
go.sum
@ -1586,8 +1586,8 @@ k8s.io/cri-api v0.20.1/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI=
|
||||
k8s.io/cri-api v0.20.4/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI=
|
||||
k8s.io/cri-api v0.20.6/go.mod h1:ew44AjNXwyn1s0U4xCKGodU7J1HzBeZ1MpGrpa5r8Yc=
|
||||
k8s.io/cri-api v0.23.1/go.mod h1:REJE3PSU0h/LOV1APBrupxrEJqnoxZC8KWzkBUHwrK4=
|
||||
k8s.io/cri-api v0.24.1 h1:BNdjWY1zrBUmR5Xg8H9mrM7C+q0n/YPg/TyfA93lDxg=
|
||||
k8s.io/cri-api v0.24.1/go.mod h1:t3tImFtGeStN+ES69bQUX9sFg67ek38BM9YIJhMmuig=
|
||||
k8s.io/cri-api v0.25.0-alpha.2 h1:KSB1Untl+/iXXPuoqWtiW0YZbjqnnYGzhz4BbaLd3pg=
|
||||
k8s.io/cri-api v0.25.0-alpha.2/go.mod h1:bKbUiy31Ex/ogNMxLEikgk+5kPv1vevtbiLN+xWEXr8=
|
||||
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||
k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||
k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
|
||||
|
@ -1106,6 +1106,7 @@ google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaE
|
||||
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
|
||||
google.golang.org/genproto v0.0.0-20220426171045-31bebdecfb46 h1:G1IeWbjrqEq9ChWxEuRPJu6laA67+XgTFHVSAvepr38=
|
||||
google.golang.org/genproto v0.0.0-20220426171045-31bebdecfb46/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
@ -1133,6 +1134,7 @@ google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQ
|
||||
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
|
||||
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
|
||||
google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
|
||||
google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
|
||||
google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
|
||||
google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
||||
google.golang.org/grpc v1.47.0 h1:9n77onPX5F3qfFCqjy9dhn8PbNQsIKeVU04J9G7umt8=
|
||||
@ -1202,7 +1204,7 @@ k8s.io/client-go v0.24.1/go.mod h1:f1kIDqcEYmwXS/vTbbhopMUbhKp2JhOeVTfxgaCIlF8=
|
||||
k8s.io/code-generator v0.19.7/go.mod h1:lwEq3YnLYb/7uVXLorOJfxg+cUu2oihFhHZ0n9NIla0=
|
||||
k8s.io/component-base v0.24.1/go.mod h1:DW5vQGYVCog8WYpNob3PMmmsY8A3L9QZNg4j/dV3s38=
|
||||
k8s.io/cri-api v0.20.1/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI=
|
||||
k8s.io/cri-api v0.24.1/go.mod h1:t3tImFtGeStN+ES69bQUX9sFg67ek38BM9YIJhMmuig=
|
||||
k8s.io/cri-api v0.25.0-alpha.2/go.mod h1:bKbUiy31Ex/ogNMxLEikgk+5kPv1vevtbiLN+xWEXr8=
|
||||
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||
k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||
k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
|
||||
|
1621
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go
generated
vendored
1621
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
29
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
generated
vendored
29
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
generated
vendored
@ -207,6 +207,16 @@ message Mount {
|
||||
MountPropagation propagation = 5;
|
||||
}
|
||||
|
||||
// IDMapping describes host to container ID mappings for a pod sandbox.
|
||||
message IDMapping {
|
||||
// HostId is the id on the host.
|
||||
uint32 host_id = 1;
|
||||
// ContainerId is the id in the container.
|
||||
uint32 container_id = 2;
|
||||
// Length is the size of the range to map.
|
||||
uint32 length = 3;
|
||||
}
|
||||
|
||||
// A NamespaceMode describes the intended namespace configuration for each
|
||||
// of the namespaces (Network, PID, IPC) in NamespaceOption. Runtimes should
|
||||
// map these modes as appropriate for the technology underlying the runtime.
|
||||
@ -232,6 +242,19 @@ enum NamespaceMode {
|
||||
TARGET = 3;
|
||||
}
|
||||
|
||||
// UserNamespace describes the intended user namespace configuration for a pod sandbox.
|
||||
message UserNamespace {
|
||||
// Mode is the NamespaceMode for this UserNamespace.
|
||||
// Note: NamespaceMode for UserNamespace currently supports only POD and NODE, not CONTAINER OR TARGET.
|
||||
NamespaceMode mode = 1;
|
||||
|
||||
// Uids specifies the UID mappings for the user namespace.
|
||||
repeated IDMapping uids = 2;
|
||||
|
||||
// Gids specifies the GID mappings for the user namespace.
|
||||
repeated IDMapping gids = 3;
|
||||
}
|
||||
|
||||
// NamespaceOption provides options for Linux namespaces.
|
||||
message NamespaceOption {
|
||||
// Network namespace for this container/sandbox.
|
||||
@ -251,6 +274,12 @@ message NamespaceOption {
|
||||
// previously created in the same pod. It is not possible to specify different targets
|
||||
// for each namespace.
|
||||
string target_id = 4;
|
||||
// UsernsOptions for this pod sandbox.
|
||||
// The Kubelet picks the user namespace configuration to use for the pod sandbox. The mappings
|
||||
// are specified as part of the UserNamespace struct. If the struct is nil, then the POD mode
|
||||
// must be assumed. This is done for backward compatibility with older Kubelet versions that
|
||||
// do not set a user namespace.
|
||||
UserNamespace userns_options = 5;
|
||||
}
|
||||
|
||||
// Int64Value is the wrapper of int64.
|
||||
|
1627
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.pb.go
generated
vendored
1627
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
29
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
generated
vendored
29
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
generated
vendored
@ -207,6 +207,16 @@ message Mount {
|
||||
MountPropagation propagation = 5;
|
||||
}
|
||||
|
||||
// IDMapping describes host to container ID mappings for a pod sandbox.
|
||||
message IDMapping {
|
||||
// HostId is the id on the host.
|
||||
uint32 host_id = 1;
|
||||
// ContainerId is the id in the container.
|
||||
uint32 container_id = 2;
|
||||
// Length is the size of the range to map.
|
||||
uint32 length = 3;
|
||||
}
|
||||
|
||||
// A NamespaceMode describes the intended namespace configuration for each
|
||||
// of the namespaces (Network, PID, IPC) in NamespaceOption. Runtimes should
|
||||
// map these modes as appropriate for the technology underlying the runtime.
|
||||
@ -232,6 +242,19 @@ enum NamespaceMode {
|
||||
TARGET = 3;
|
||||
}
|
||||
|
||||
// UserNamespace describes the intended user namespace configuration for a pod sandbox.
|
||||
message UserNamespace {
|
||||
// Mode is the NamespaceMode for this UserNamespace.
|
||||
// Note: NamespaceMode for UserNamespace currently supports only POD and NODE, not CONTAINER OR TARGET.
|
||||
NamespaceMode mode = 1;
|
||||
|
||||
// Uids specifies the UID mappings for the user namespace.
|
||||
repeated IDMapping uids = 2;
|
||||
|
||||
// Gids specifies the GID mappings for the user namespace.
|
||||
repeated IDMapping gids = 3;
|
||||
}
|
||||
|
||||
// NamespaceOption provides options for Linux namespaces.
|
||||
message NamespaceOption {
|
||||
// Network namespace for this container/sandbox.
|
||||
@ -251,6 +274,12 @@ message NamespaceOption {
|
||||
// previously created in the same pod. It is not possible to specify different targets
|
||||
// for each namespace.
|
||||
string target_id = 4;
|
||||
// UsernsOptions for this pod sandbox.
|
||||
// The Kubelet picks the user namespace configuration to use for the pod sandbox. The mappings
|
||||
// are specified as part of the UserNamespace struct. If the struct is nil, then the POD mode
|
||||
// must be assumed. This is done for backward compatibility with older Kubelet versions that
|
||||
// do not set a user namespace.
|
||||
UserNamespace userns_options = 5;
|
||||
}
|
||||
|
||||
// Int64Value is the wrapper of int64.
|
||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -731,8 +731,8 @@ k8s.io/component-base/logs/logreduction
|
||||
k8s.io/component-base/metrics
|
||||
k8s.io/component-base/metrics/legacyregistry
|
||||
k8s.io/component-base/version
|
||||
# k8s.io/cri-api v0.24.1
|
||||
## explicit; go 1.16
|
||||
# k8s.io/cri-api v0.25.0-alpha.2
|
||||
## explicit; go 1.18
|
||||
k8s.io/cri-api/pkg/apis/runtime/v1
|
||||
k8s.io/cri-api/pkg/apis/runtime/v1alpha2
|
||||
# k8s.io/klog/v2 v2.60.1
|
||||
|
Loading…
Reference in New Issue
Block a user