mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Exit from NewController() for PersistentVolumeController when InitPlugins() failed just like NewAttachDetachController() does
This commit is contained in:
@@ -391,7 +391,10 @@ func TestProvisionMultiSync(t *testing.T) {
|
||||
|
||||
// When provisioning is disabled, provisioning a claim should instantly return nil
|
||||
func TestDisablingDynamicProvisioner(t *testing.T) {
|
||||
ctrl := newTestController(nil, nil, false)
|
||||
ctrl, err := newTestController(nil, nil, false)
|
||||
if err != nil {
|
||||
t.Fatalf("Construct PersistentVolume controller failed: %v", err)
|
||||
}
|
||||
retVal := ctrl.provisionClaim(nil)
|
||||
if retVal != nil {
|
||||
t.Errorf("Expected nil return but got %v", retVal)
|
||||
|
||||
Reference in New Issue
Block a user