kubernetes_asyncio.client.models.v1_csi_node_driver module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_csi_node_driver.V1CSINodeDriver(allocatable=None, name=None, node_id=None, topology_keys=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property allocatable
Gets the allocatable of this V1CSINodeDriver. # noqa: E501
- Returns:
The allocatable of this V1CSINodeDriver. # noqa: E501
- Return type:
- attribute_map = {'allocatable': 'allocatable', 'name': 'name', 'node_id': 'nodeID', 'topology_keys': 'topologyKeys'}
- property name
Gets the name of this V1CSINodeDriver. # noqa: E501
name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. # noqa: E501
- Returns:
The name of this V1CSINodeDriver. # noqa: E501
- Return type:
str
- property node_id
Gets the node_id of this V1CSINodeDriver. # noqa: E501
nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as “node1”, but the storage system may refer to the same node as “nodeA”. When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. “nodeA” instead of “node1”. This field is required. # noqa: E501
- Returns:
The node_id of this V1CSINodeDriver. # noqa: E501
- Return type:
str
- openapi_types = {'allocatable': 'V1VolumeNodeResources', 'name': 'str', 'node_id': 'str', 'topology_keys': 'list[str]'}
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property topology_keys
Gets the topology_keys of this V1CSINodeDriver. # noqa: E501
topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. “company.com/zone”, “company.com/region”). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. # noqa: E501
- Returns:
The topology_keys of this V1CSINodeDriver. # noqa: E501
- Return type:
list[str]