Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for configBytes (0.14 sec)

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

    	if config == nil || reflect.ValueOf(config).IsNil() {
    		return nil, nil, nil
    	}
    
    	configBytes, err := io.ReadAll(config)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	return bytes.NewBuffer(configBytes), bytes.NewBuffer(configBytes), nil
    }
    
    // NewFromPlugins returns an admission.Interface that will enforce admission control decisions of all
    // the given plugins.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/config/upgradeconfiguration.go

    	// Otherwise, we have a config file. Let's load it.
    	configBytes, err := os.ReadFile(cfgPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to load config from file %q", cfgPath)
    	}
    
    	// Split the YAML documents in the file into a DocumentMap
    	docmap, err := kubeadmutil.SplitYAMLDocuments(configBytes)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/kube/inject/webhook_test.go

    		t.Fatalf("Failed to create AdmissionReview: %v", err)
    	}
    	return reviewJSON
    }
    
    func createWebhook(t testing.TB, cfg *Config, pcResources int) *Webhook {
    	t.Helper()
    	dir := t.TempDir()
    
    	configBytes, err := yaml.Marshal(cfg)
    	if err != nil {
    		t.Fatalf("Could not marshal test injection config: %v", err)
    	}
    	_, values, _ := readInjectionSettings(t, "default")
    	var (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
  7. 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)
  8. src/syscall/ztypes_darwin_arm64.go

    	Count     int32
    	Pad_cgo_0 [4]byte
    }
    
    type Fbootstraptransfer_t struct {
    	Offset int64
    	Length uint64
    	Buffer *byte
    }
    
    type Log2phys_t struct {
    	Flags       uint32
    	Contigbytes int64
    	Devoffset   int64
    }
    
    type Fsid struct {
    	Val [2]int32
    }
    
    type Dirent struct {
    	Ino       uint64
    	Seekoff   uint64
    	Reclen    uint16
    	Namlen    uint16
    	Type      uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  9. src/syscall/ztypes_darwin_amd64.go

    	Count     int32
    	Pad_cgo_0 [4]byte
    }
    
    type Fbootstraptransfer_t struct {
    	Offset int64
    	Length uint64
    	Buffer *byte
    }
    
    type Log2phys_t struct {
    	Flags       uint32
    	Contigbytes int64
    	Devoffset   int64
    }
    
    type Fsid struct {
    	Val [2]int32
    }
    
    type Dirent struct {
    	Ino       uint64
    	Seekoff   uint64
    	Reclen    uint16
    	Namlen    uint16
    	Type      uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/bootstrap.min.js.map

    supportsTransitionEnd() {\n    return Boolean(TRANSITION_END)\n  },\n\n  isElement(obj) {\n    return (obj[0] || obj).nodeType\n  },\n\n  typeCheckConfig(componentName, config, configTypes) {\n    for (const property in configTypes) {\n      if (Object.prototype.hasOwnProperty.call(configTypes, property)) {\n        const expectedTypes = configTypes[property]\n        const value         = config[property]\n        const valueType     = value && Util.isElement(value)\n          ? 'element' : toType(value)\n\n...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 07 10:28:50 UTC 2020
    - 185.8K bytes
    - Viewed (0)
Back to top