Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for featuresEnabled (0.31 sec)

  1. pkg/apis/core/v1/defaults_test.go

    }
    func testWorkloadDefaults(t *testing.T, featuresEnabled bool) {
    	allFeatures := utilfeature.DefaultFeatureGate.DeepCopy().GetAll()
    	for feature, featureSpec := range allFeatures {
    		if !featureSpec.LockToDefault {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, feature, featuresEnabled)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  2. pkg/apis/storage/validation/validation_test.go

    	tests := []struct {
    		name              string
    		featureEnabled    bool
    		seLinuxMountValue *bool
    		expectError       bool
    	}{{
    		name:              "feature enabled, nil value",
    		featureEnabled:    true,
    		seLinuxMountValue: nil,
    		expectError:       true,
    	}, {
    		name:              "feature enabled, non-nil value",
    		featureEnabled:    true,
    		seLinuxMountValue: utilpointer.Bool(true),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  3. plugin/pkg/admission/noderestriction/admission_test.go

    		obj            runtime.Object
    		featureEnabled bool
    		expectError    string
    	}{
    		"create allowed, enabled": {
    			operation:      admission.Create,
    			obj:            sliceNode,
    			featureEnabled: true,
    			expectError:    "",
    		},
    		"create disallowed, enabled": {
    			operation:      admission.Create,
    			obj:            sliceOtherNode,
    			featureEnabled: true,
    			expectError:    err,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    				},
    			},
    			featureEnabled: false,
    			expectedErr:    `matchConditions: Invalid value: "": matchConditions are not supported when StructuredAuthorizationConfiguration feature gate is disabled`,
    		},
    		{
    			name:            "no matchConditions should not require feature enablement",
    			matchConditions: []api.WebhookMatchCondition{},
    			featureEnabled:  false,
    			expectedErr:     "",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
Back to top