EmptyDirVolumeSource#

pydantic model nublado.controller.config.EmptyDirVolumeSource#

Empty directory shared between all Pod containers.

Parameters:

data (Any)

Show JSON schema
{
   "title": "EmptyDirVolumeSource",
   "description": "Empty directory shared between all Pod containers.",
   "type": "object",
   "properties": {
      "type": {
         "const": "emptyDir",
         "title": "Type",
         "type": "string"
      },
      "medium": {
         "$ref": "#/$defs/EmptyDirSource",
         "default": "memory"
      },
      "size": {
         "description": "Maximum size of emptyDir in bytes. Also accepts strings with SI suffixes, in either binary or decimal form.",
         "examples": [
            1073741824,
            "1Gi",
            "1073741824",
            "64ki",
            "250M"
         ],
         "title": "Size",
         "type": "integer"
      }
   },
   "$defs": {
      "EmptyDirSource": {
         "description": "Where space for emptyDirs (e.g. :file:`/tmp`) should come from.",
         "enum": [
            "disk",
            "memory"
         ],
         "title": "EmptyDirSource",
         "type": "string"
      }
   },
   "additionalProperties": false,
   "required": [
      "type",
      "size"
   ]
}

Fields:
field medium: EmptyDirSource = EmptyDirSource.MEMORY#
field size: Annotated[int, Field(title='Size', description='Maximum size of emptyDir in bytes. Also accepts strings with SI suffixes, in either binary or decimal form.', examples=[1073741824, '1Gi', '1073741824', '64ki', '250M']), BeforeValidator(memory_to_bytes)] [Required]#

Maximum size of emptyDir in bytes. Also accepts strings with SI suffixes, in either binary or decimal form.

Constraints:
  • func = <function memory_to_bytes at 0x7fb3fa5580f0>

  • json_schema_input_type = PydanticUndefined

field type: Literal['emptyDir'] [Required]#