Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for configBytes (0.17 sec)

  1. cmd/kubeadm/app/phases/addons/dns/dns.go

    	fmt.Fprintln(out, "[addons] Applied essential addon: CoreDNS")
    	return nil
    }
    
    func createCoreDNSAddon(deploymentBytes, serviceBytes, configBytes []byte, client clientset.Interface) error {
    	coreDNSConfigMap := &v1.ConfigMap{}
    	if err := kuberuntime.DecodeInto(clientsetscheme.Codecs.UniversalDecoder(), configBytes, coreDNSConfigMap); err != nil {
    		return errors.Wrapf(err, "%s ConfigMap", unableToDecodeCoreDNS)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/upgrade/staticpods_test.go

    }
    
    func getConfig(version, certsDir, etcdDataDir string) (*kubeadmapi.InitConfiguration, error) {
    	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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    	if err != nil {
    		return err
    	}
    
    	// writes the kubeconfig to disk if it not exists
    	configBytes, err := clientcmd.Write(*config)
    	if err != nil {
    		return errors.Wrap(err, "failure while serializing admin kubeconfig")
    	}
    
    	fmt.Fprintln(out, string(configBytes))
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    		return
    	}
    
    	password := cred.SecretKey
    	configBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    	var ureq madmin.AddOrUpdateUserReq
    	if err = json.Unmarshal(configBytes, &ureq); err != nil {
    		adminLogIf(ctx, err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
Back to top