[Azure] Fix the EmptyDir Volume issue for ACI Provider
This commit is contained in:
@@ -471,10 +471,7 @@ func (p *ACIProvider) getVolumes(pod *v1.Pod) ([]aci.Volume, error) {
|
|||||||
if v.EmptyDir != nil {
|
if v.EmptyDir != nil {
|
||||||
volumes = append(volumes, aci.Volume{
|
volumes = append(volumes, aci.Volume{
|
||||||
Name: v.Name,
|
Name: v.Name,
|
||||||
EmptyDir: map[string]interface{}{
|
EmptyDir: map[string]interface{}{},
|
||||||
"medium": v.EmptyDir.Medium,
|
|
||||||
"sizeLimit": v.EmptyDir.SizeLimit,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ type UsageListResult struct {
|
|||||||
type Volume struct {
|
type Volume struct {
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
AzureFile *AzureFileVolume `json:"azureFile,omitempty"`
|
AzureFile *AzureFileVolume `json:"azureFile,omitempty"`
|
||||||
EmptyDir map[string]interface{} `json:"emptyDir,omitempty"`
|
EmptyDir map[string]interface{} `json:"emptyDir"`
|
||||||
Secret map[string]string `json:"secret,omitempty"`
|
Secret map[string]string `json:"secret,omitempty"`
|
||||||
GitRepo *GitRepoVolume `json:"gitRepo,omitempty"`
|
GitRepo *GitRepoVolume `json:"gitRepo,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user