Skip to content

Commit

Permalink
Support volume mounts for containerApp (#17530)
Browse files Browse the repository at this point in the history
* add volume mounts

* add identifier

* refine volume definition
  • Loading branch information
Juliehzl authored Jan 28, 2022
1 parent 89b06f3 commit c7939f0
Showing 1 changed file with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@
"resources": {
"$ref": "#/definitions/ContainerResources",
"description": "Container resource requirements."
},
"volumeMounts": {
"description": "Container volume mounts.",
"type": "array",
"items": {
"$ref": "#/definitions/VolumeMount"
},
"x-ms-identifiers": [
"volumeName"
]
}
}
},
Expand Down Expand Up @@ -346,6 +356,56 @@
"dapr": {
"$ref": "#/definitions/Dapr",
"description": "Dapr configuration for the Container App."
},
"volumes": {
"description": "List of volume definitions for the Container App.",
"type": "array",
"items": {
"$ref": "#/definitions/Volume"
},
"x-ms-identifiers": [
"name"
]
}
}
},
"Volume": {
"description": "Volume definitions for the Container App.",
"type": "object",
"properties": {
"name": {
"description": "Volume name.",
"type": "string"
},
"storageType": {
"description": "Storage type for the volume. If not provided, use EmptyDir.",
"enum": [
"AzureFile",
"EmptyDir"
],
"type": "string",
"x-ms-enum": {
"name": "StorageType",
"modelAsString": true
}
},
"storageName": {
"description": "Name of storage resource. No need to provide for EmptyDir.",
"type": "string"
}
}
},
"VolumeMount": {
"description": "Volume mount for the Container App.",
"type": "object",
"properties": {
"volumeName": {
"description": "This must match the Name of a Volume.",
"type": "string"
},
"mountPath": {
"description": "Path within the container at which the volume should be mounted.Must not contain ':'.",
"type": "string"
}
}
}
Expand Down

0 comments on commit c7939f0

Please sign in to comment.