Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for computePluginNames (0.13 sec)

  1. pkg/kubeapiserver/options/admission.go

    		a.GenericAdmission.EnablePlugins, a.GenericAdmission.DisablePlugins = computePluginNames(a.PluginNames, a.GenericAdmission.RecommendedPluginOrder)
    	}
    
    	return a.GenericAdmission.ApplyTo(c, informers, kubeClient, dynamicClient, features, pluginInitializers...)
    }
    
    // explicitly disable all plugins that are not in the enabled list
    func computePluginNames(explicitlyEnabled []string, all []string) (enabled []string, disabled []string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 09:22:37 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/options/admission_test.go

    			enabled:          []string{"one"},
    			expectedDisabled: []string{"two"},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			actualEnabled, actualDisabled := computePluginNames(tc.enabled, tc.all)
    			if e, a := tc.enabled, actualEnabled; !reflect.DeepEqual(e, a) {
    				t.Errorf("expected %v, got %v", e, a)
    			}
    			if e, a := tc.expectedDisabled, actualDisabled; !reflect.DeepEqual(e, a) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 01:51:35 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top