CnsEntityMetadata
Base data object that represents the metadata associated with an entity in container orchestrators like Kubernetes, Docker swarm etc.
This structure may be used only with operations rendered under /vsan
.
{
"_typeName": "string",
"entityName": "string",
"labels": [
{
"_typeName": "string",
"key": "string",
"value": "string"
}
],
"delete": false,
"clusterId": "string"
}
Represents the name of entity.
Labels for this entity.
Labels are opaque to CNS and it will neither try to parse the key nor the value. A maximum of 32 labels will be supported for each entity. Label key should be less than 320 bytes and value should be less than 64 bytes.
If the constraints are not honored, then InvalidArgument will be thrown.
If not set, False is assumed.
- True indicates that the EntityMetadata should be deleted in VolumeManager.Update API.
- False indicates that the EntityMetadata should be added or replaced in VolumeManager.Create, VolumeManager.Update APIs.
Represents the container orchestrator cluster the entity belongs to.
This is a mandatory field as the VolumeMetadata.containerCluster is deprecated.
This field points to a cluster in containerClusterArray