Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ReadAdmissionConfiguration (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/config_test.go

    	for testName, testCase := range testCases {
    		if err = os.WriteFile(configFileName, []byte(testCase.ConfigBody), 0644); err != nil {
    			t.Fatalf("unexpected err writing temp file: %v", err)
    		}
    		config, err := ReadAdmissionConfiguration(testCase.PluginNames, configFileName, scheme)
    		if err != nil {
    			t.Fatalf("unexpected err: %v", err)
    		}
    		if !reflect.DeepEqual(config.(configProvider).config, testCase.ExpectedAdmissionConfig) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/config.go

    		return path, nil
    	}
    	if len(base) == 0 || base == "." {
    		cwd, err := os.Getwd()
    		if err != nil {
    			return "", err
    		}
    		base = cwd
    	}
    	return filepath.Join(base, path), nil
    }
    
    // ReadAdmissionConfiguration reads the admission configuration at the specified path.
    // It returns the loaded admission configuration if the input file aligns with the required syntax.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		return fmt.Errorf("admission depends on a Kubernetes core API client, it cannot be nil")
    	}
    
    	pluginNames := a.enabledPluginNames()
    
    	pluginsConfigProvider, err := admission.ReadAdmissionConfiguration(pluginNames, a.ConfigFile, configScheme)
    	if err != nil {
    		return fmt.Errorf("failed to read plugin config: %v", err)
    	}
    
    	discoveryClient := cacheddiscovery.NewMemCacheClient(kubeClient.Discovery())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top