Skip to content

Commit

Permalink
Handling PoolSizeTooSmall error while creating ANF volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
aparna0508 authored Mar 27, 2024
1 parent 1bdfb9c commit 6d71d32
Show file tree
Hide file tree
Showing 9 changed files with 792 additions and 168 deletions.
1 change: 0 additions & 1 deletion frontend/csi/controller_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ func (p *Plugin) CreateVolume(
}

if err != nil {
p.controllerHelper.RecordVolumeEvent(ctx, req.Name, controllerhelpers.EventTypeNormal, "ProvisioningFailed", err.Error())
return nil, p.getCSIErrorForOrchestratorError(err)
} else {
p.controllerHelper.RecordVolumeEvent(ctx, req.Name, v1.EventTypeNormal, "ProvisioningSuccess", "provisioned a volume")
Expand Down
8 changes: 4 additions & 4 deletions mocks/mock_storage_drivers/mock_azure/mock_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6d71d32

Please sign in to comment.