Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for decodeInt8 (0.18 sec)

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

    	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. pkg/api/testing/serialization_test.go

    	t.Logf("rs.v1.apps -> rc._internal")
    	if err := runtime.DecodeInto(decoder, data, rc); err != nil {
    		t.Fatalf("unexpected decoding error: %v", err)
    	}
    
    	t.Logf("rc._internal -> rc.v1")
    	data, err = runtime.Encode(defaultCodec, rc)
    	if err != nil {
    		t.Fatalf("unexpected encoding error: %v", err)
    	}
    
    	t.Logf("rc.v1 -> rs._internal.apps")
    	if err := runtime.DecodeInto(decoder, data, rs); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. src/encoding/gob/decode.go

    	for _, b := range buf[0:n] {
    		x = x<<8 | uint64(b)
    	}
    	state.b.Drop(n)
    	return x
    }
    
    // decodeInt reads an encoded signed integer from state.r.
    // Does not check for overflow.
    func (state *decoderState) decodeInt() int64 {
    	x := state.decodeUint()
    	if x&1 != 0 {
    		return ^int64(x >> 1)
    	}
    	return int64(x >> 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/config/initconfiguration.go

    			// Decode the bytes into the internal struct. Under the hood, the bytes will be unmarshalled into the
    			// right external version, defaulted, and converted into the internal version.
    			if err := runtime.DecodeInto(kubeadmscheme.Codecs.UniversalDecoder(), fileContent, initcfg); err != nil {
    				return nil, err
    			}
    			continue
    		}
    		if kubeadmutil.GroupVersionKindsHasClusterConfiguration(gvk) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 12:41:16 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/config/cluster.go

    		kubeadmapiv1.SchemeGroupVersion.WithKind(constants.ClusterConfigurationKind),
    		[]byte(clusterConfigurationData)); err != nil {
    		klog.Warning(err.Error())
    	}
    	if err := runtime.DecodeInto(kubeadmscheme.Codecs.UniversalDecoder(), []byte(clusterConfigurationData), &initcfg.ClusterConfiguration); err != nil {
    		return nil, errors.Wrap(err, "failed to decode cluster configuration data")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/componentconfigs/configset.go

    			klog.Warning(err.Error())
    		}
    
    		// As long as we support only component configs with a single kind, this is allowed
    		return runtime.DecodeInto(Codecs.UniversalDecoder(), yaml, into)
    	}
    
    	return nil
    }
    
    // ensureInitializedComponentConfigs is an utility func to initialize the ComponentConfigMap in ClusterConfiguration prior to possible writes to it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:36:00 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    	objToUpdate := p.restPatcher.New()
    	if err := runtime.DecodeInto(p.codec, patchedObjJS, objToUpdate); err != nil {
    		strictError, isStrictError := runtime.AsStrictDecodingError(err)
    		switch {
    		case !isStrictError:
    			// disregard any appliedStrictErrs, because it's an incomplete
    			// list of strict errors given that we don't know what fields were
    			// unknown because DecodeInto failed. Non-strict errors trump in this case.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    	var decoded *apidiscoveryv2beta1.APIGroupDiscoveryList
    	if len(bytes) > 0 {
    		decoded = &apidiscoveryv2beta1.APIGroupDiscoveryList{}
    		err := runtime.DecodeInto(codecs.UniversalDecoder(), bytes, decoded)
    		if err != nil {
    			panic(fmt.Sprintf("failed to decode response: %v", err))
    		}
    
    	}
    	return r, bytes, decoded
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			deploymentBytes, _ := kubeadmutil.ParseTemplate(testCase.manifest, testCase.data)
    			deployment := &apps.Deployment{}
    			if err := runtime.DecodeInto(clientsetscheme.Codecs.UniversalDecoder(), deploymentBytes, deployment); err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    			if deployment.Spec.Template.Spec.PriorityClassName != "system-cluster-critical" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. pkg/volume/util/util.go

    	}
    	if len(podDef) == 0 {
    		return nil, fmt.Errorf("file was empty: %s", filePath)
    	}
    	pod := &v1.Pod{}
    
    	codec := legacyscheme.Codecs.UniversalDecoder()
    	if err := apiruntime.DecodeInto(codec, podDef, pod); err != nil {
    		return nil, fmt.Errorf("failed decoding file: %v", err)
    	}
    	return pod, nil
    }
    
    // CalculateTimeoutForVolume calculates time for a Recycler pod to complete a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
Back to top