Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BytesToInitConfiguration (0.39 sec)

  1. cmd/kubeadm/app/util/config/initconfiguration_test.go

    			b, err := yaml.Marshal(tc.cfg)
    			if err != nil {
    				t.Fatalf("unexpected error while marshalling to YAML: %v", err)
    			}
    
    			cfg, err := BytesToInitConfiguration(b, true)
    			if err != nil {
    				t.Fatalf("unexpected error of BytesToInitConfiguration: %v\nconfig: %s", err, string(b))
    			}
    
    			if tc.expectedTaintCnt != len(cfg.NodeRegistration.Taints) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/config/initconfiguration.go

    	klog.V(1).Infof("loading configuration from %q", cfgPath)
    
    	b, err := os.ReadFile(cfgPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to read config from %q ", cfgPath)
    	}
    
    	return BytesToInitConfiguration(b, opts.SkipCRIDetect)
    }
    
    // LoadOrDefaultInitConfiguration takes a path to a config file and a versioned configuration that can serve as the default config
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 12:41:16 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/upgrade/staticpods_test.go

    	configBytes := []byte(fmt.Sprintf(testConfiguration, certsDir, etcdDataDir, version))
    
    	// Unmarshal the config
    	return configutil.BytesToInitConfiguration(configBytes, true /* skipCRIDetect */)
    }
    
    func getTempDir(t *testing.T, name string) (string, func()) {
    	dir, err := os.MkdirTemp(os.TempDir(), name)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top