
PodResources client could be used by sriov cni to obtain devices allocated for container by sriov device-plugin. KubeletPodResources service is still in alpha, so it should be explicitly enabled in kubelet feature-gates: kubelet --feature-gates KubeletPodResources=true New config option 'kubelet_root_dir' added to 'sriov' section that defaults to kubelet default root-dir '/var/lib/kulelet'. In case kubelet started with non-default root directory passed via '--root-dir' option, the same value should be configured in 'kubelet_root_dir'. Note that if sriov binding driver will be used inside container 'kubelet_root_dir'/pod-resources directory should be mounted to this container in order to allow communication with kubelet via gRPC protocol over the unix domain socket. Partial-Bug: 1826865 Depends-On: https://review.openstack.org/#/c/652629 Change-Id: Icf088b839db079efe9c7647c31be4ead867ed32b Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
274 lines
9.3 KiB
Python
274 lines
9.3 KiB
Python
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: kuryr_kubernetes/pod_resources/api.proto
|
|
|
|
import sys
|
|
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from google.protobuf import reflection as _reflection
|
|
from google.protobuf import symbol_database as _symbol_database
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
|
|
|
|
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
name='kuryr_kubernetes/pod_resources/api.proto',
|
|
package='v1alpha1',
|
|
syntax='proto3',
|
|
serialized_options=None,
|
|
serialized_pb=_b('\n(kuryr_kubernetes/pod_resources/api.proto\x12\x08v1alpha1\"\x19\n\x17ListPodResourcesRequest\"I\n\x18ListPodResourcesResponse\x12-\n\rpod_resources\x18\x01 \x03(\x0b\x32\x16.v1alpha1.PodResources\"a\n\x0cPodResources\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x30\n\ncontainers\x18\x03 \x03(\x0b\x32\x1c.v1alpha1.ContainerResources\"O\n\x12\x43ontainerResources\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x64\x65vices\x18\x02 \x03(\x0b\x32\x1a.v1alpha1.ContainerDevices\"=\n\x10\x43ontainerDevices\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x12\n\ndevice_ids\x18\x02 \x03(\t2e\n\x12PodResourcesLister\x12O\n\x04List\x12!.v1alpha1.ListPodResourcesRequest\x1a\".v1alpha1.ListPodResourcesResponse\"\x00\x62\x06proto3')
|
|
)
|
|
|
|
|
|
|
|
|
|
_LISTPODRESOURCESREQUEST = _descriptor.Descriptor(
|
|
name='ListPodResourcesRequest',
|
|
full_name='v1alpha1.ListPodResourcesRequest',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=54,
|
|
serialized_end=79,
|
|
)
|
|
|
|
|
|
_LISTPODRESOURCESRESPONSE = _descriptor.Descriptor(
|
|
name='ListPodResourcesResponse',
|
|
full_name='v1alpha1.ListPodResourcesResponse',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='pod_resources', full_name='v1alpha1.ListPodResourcesResponse.pod_resources', index=0,
|
|
number=1, type=11, cpp_type=10, label=3,
|
|
has_default_value=False, default_value=[],
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=81,
|
|
serialized_end=154,
|
|
)
|
|
|
|
|
|
_PODRESOURCES = _descriptor.Descriptor(
|
|
name='PodResources',
|
|
full_name='v1alpha1.PodResources',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='name', full_name='v1alpha1.PodResources.name', index=0,
|
|
number=1, type=9, cpp_type=9, label=1,
|
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
_descriptor.FieldDescriptor(
|
|
name='namespace', full_name='v1alpha1.PodResources.namespace', index=1,
|
|
number=2, type=9, cpp_type=9, label=1,
|
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
_descriptor.FieldDescriptor(
|
|
name='containers', full_name='v1alpha1.PodResources.containers', index=2,
|
|
number=3, type=11, cpp_type=10, label=3,
|
|
has_default_value=False, default_value=[],
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=156,
|
|
serialized_end=253,
|
|
)
|
|
|
|
|
|
_CONTAINERRESOURCES = _descriptor.Descriptor(
|
|
name='ContainerResources',
|
|
full_name='v1alpha1.ContainerResources',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='name', full_name='v1alpha1.ContainerResources.name', index=0,
|
|
number=1, type=9, cpp_type=9, label=1,
|
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
_descriptor.FieldDescriptor(
|
|
name='devices', full_name='v1alpha1.ContainerResources.devices', index=1,
|
|
number=2, type=11, cpp_type=10, label=3,
|
|
has_default_value=False, default_value=[],
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=255,
|
|
serialized_end=334,
|
|
)
|
|
|
|
|
|
_CONTAINERDEVICES = _descriptor.Descriptor(
|
|
name='ContainerDevices',
|
|
full_name='v1alpha1.ContainerDevices',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='resource_name', full_name='v1alpha1.ContainerDevices.resource_name', index=0,
|
|
number=1, type=9, cpp_type=9, label=1,
|
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
_descriptor.FieldDescriptor(
|
|
name='device_ids', full_name='v1alpha1.ContainerDevices.device_ids', index=1,
|
|
number=2, type=9, cpp_type=9, label=3,
|
|
has_default_value=False, default_value=[],
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=336,
|
|
serialized_end=397,
|
|
)
|
|
|
|
_LISTPODRESOURCESRESPONSE.fields_by_name['pod_resources'].message_type = _PODRESOURCES
|
|
_PODRESOURCES.fields_by_name['containers'].message_type = _CONTAINERRESOURCES
|
|
_CONTAINERRESOURCES.fields_by_name['devices'].message_type = _CONTAINERDEVICES
|
|
DESCRIPTOR.message_types_by_name['ListPodResourcesRequest'] = _LISTPODRESOURCESREQUEST
|
|
DESCRIPTOR.message_types_by_name['ListPodResourcesResponse'] = _LISTPODRESOURCESRESPONSE
|
|
DESCRIPTOR.message_types_by_name['PodResources'] = _PODRESOURCES
|
|
DESCRIPTOR.message_types_by_name['ContainerResources'] = _CONTAINERRESOURCES
|
|
DESCRIPTOR.message_types_by_name['ContainerDevices'] = _CONTAINERDEVICES
|
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
|
|
ListPodResourcesRequest = _reflection.GeneratedProtocolMessageType('ListPodResourcesRequest', (_message.Message,), dict(
|
|
DESCRIPTOR = _LISTPODRESOURCESREQUEST,
|
|
__module__ = 'kuryr_kubernetes.pod_resources.api_pb2'
|
|
# @@protoc_insertion_point(class_scope:v1alpha1.ListPodResourcesRequest)
|
|
))
|
|
_sym_db.RegisterMessage(ListPodResourcesRequest)
|
|
|
|
ListPodResourcesResponse = _reflection.GeneratedProtocolMessageType('ListPodResourcesResponse', (_message.Message,), dict(
|
|
DESCRIPTOR = _LISTPODRESOURCESRESPONSE,
|
|
__module__ = 'kuryr_kubernetes.pod_resources.api_pb2'
|
|
# @@protoc_insertion_point(class_scope:v1alpha1.ListPodResourcesResponse)
|
|
))
|
|
_sym_db.RegisterMessage(ListPodResourcesResponse)
|
|
|
|
PodResources = _reflection.GeneratedProtocolMessageType('PodResources', (_message.Message,), dict(
|
|
DESCRIPTOR = _PODRESOURCES,
|
|
__module__ = 'kuryr_kubernetes.pod_resources.api_pb2'
|
|
# @@protoc_insertion_point(class_scope:v1alpha1.PodResources)
|
|
))
|
|
_sym_db.RegisterMessage(PodResources)
|
|
|
|
ContainerResources = _reflection.GeneratedProtocolMessageType('ContainerResources', (_message.Message,), dict(
|
|
DESCRIPTOR = _CONTAINERRESOURCES,
|
|
__module__ = 'kuryr_kubernetes.pod_resources.api_pb2'
|
|
# @@protoc_insertion_point(class_scope:v1alpha1.ContainerResources)
|
|
))
|
|
_sym_db.RegisterMessage(ContainerResources)
|
|
|
|
ContainerDevices = _reflection.GeneratedProtocolMessageType('ContainerDevices', (_message.Message,), dict(
|
|
DESCRIPTOR = _CONTAINERDEVICES,
|
|
__module__ = 'kuryr_kubernetes.pod_resources.api_pb2'
|
|
# @@protoc_insertion_point(class_scope:v1alpha1.ContainerDevices)
|
|
))
|
|
_sym_db.RegisterMessage(ContainerDevices)
|
|
|
|
|
|
|
|
_PODRESOURCESLISTER = _descriptor.ServiceDescriptor(
|
|
name='PodResourcesLister',
|
|
full_name='v1alpha1.PodResourcesLister',
|
|
file=DESCRIPTOR,
|
|
index=0,
|
|
serialized_options=None,
|
|
serialized_start=399,
|
|
serialized_end=500,
|
|
methods=[
|
|
_descriptor.MethodDescriptor(
|
|
name='List',
|
|
full_name='v1alpha1.PodResourcesLister.List',
|
|
index=0,
|
|
containing_service=None,
|
|
input_type=_LISTPODRESOURCESREQUEST,
|
|
output_type=_LISTPODRESOURCESRESPONSE,
|
|
serialized_options=None,
|
|
),
|
|
])
|
|
_sym_db.RegisterServiceDescriptor(_PODRESOURCESLISTER)
|
|
|
|
DESCRIPTOR.services_by_name['PodResourcesLister'] = _PODRESOURCESLISTER
|
|
|
|
# @@protoc_insertion_point(module_scope)
|