Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 377 for patched (0.16 sec)

  1. cmd/kubeadm/app/util/patches/patches_test.go

    			expectedPatchSets: []*patchSet{
    				{
    					targetName: "etcd",
    					patchType:  types.StrategicMergePatchType,
    					patches:    []string{patchData},
    				},
    				{
    					targetName: "kube-apiserver",
    					patchType:  types.JSONPatchType,
    					patches:    []string{patchData},
    				},
    				{
    					targetName: "kube-scheduler",
    					patchType:  types.MergePatchType,
    					patches:    []string{patchData},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/patches/patches.go

    		for _, patch := range patchSet.patches {
    			patchBytes := []byte(patch)
    
    			// Patch based on the patch type.
    			switch patchSet.patchType {
    
    			// JSON patch.
    			case types.JSONPatchType:
    				var patchObj jsonpatch.Patch
    				patchObj, err = jsonpatch.DecodePatch(patchBytes)
    				if err == nil {
    					patchedData, err = patchObj.Apply(patchedData)
    				}
    
    			// Merge patch.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster.go

    			if patched := cp.patch(nil, defaultCluster.build()); patched != nil {
    				resources = append(resources, patched)
    				if features.EnableCDSCaching {
    					cb.cache.Add(&clusterKey, cb.req, patched)
    				}
    			}
    			for _, ss := range subsetClusters {
    				if patched := cp.patch(nil, ss); patched != nil {
    					resources = append(resources, patched)
    					if features.EnableCDSCaching {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  4. pkg/test/framework/components/istio/configmap.go

    }
    
    func (mc *meshConfig) PatchMeshConfig(t resource.Context, patch string) error {
    	return mc.UpdateMeshConfig(t, func(mc *meshconfig.MeshConfig) error {
    		return protomarshal.ApplyYAML(patch, mc)
    	}, cleanup.Always)
    }
    
    func (mc *meshConfig) PatchMeshConfigOrFail(ctx resource.Context, t test.Failer, patch string) {
    	t.Helper()
    	if err := mc.PatchMeshConfig(ctx, patch); err != nil {
    		t.Fatal(err)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/etcd/local_test.go

    		return
    	}
    	if pod.Spec.DNSPolicy != "" {
    		t.Errorf("DNSPolicy should be empty but: %v", pod.Spec.DNSPolicy)
    	}
    
    	if _, ok := pod.ObjectMeta.Annotations["patched"]; !ok {
    		t.Errorf("Patches were not applied to %s", kubeadmconstants.Etcd)
    	}
    }
    
    func TestGetEtcdCommand(t *testing.T) {
    	var tests = []struct {
    		name             string
    		advertiseAddress string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/staticpod/utils.go

    	if err != nil {
    		return pod, errors.Wrapf(err, "failed to marshal Pod manifest to YAML")
    	}
    
    	patchManager, err := patches.GetPatchManagerForPath(patchesDir, patches.KnownTargets(), output)
    	if err != nil {
    		return pod, err
    	}
    
    	patchTarget := &patches.PatchTarget{
    		Name:                      pod.Name,
    		StrategicMergePatchObject: v1.Pod{},
    		Data:                      podYAML,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. pkg/kube/inject/webhook.go

    		return nil, fmt.Errorf("failed to process pod: %v", err)
    	}
    
    	patch, err := createPatch(mergedPod, originalPodSpec)
    	if err != nil {
    		return nil, fmt.Errorf("failed to create patch: %v", err)
    	}
    
    	log.Debugf("AdmissionResponse: patch=%v\n", string(patch))
    	return patch, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/internal/classpath/BuildScriptClasspathInstrumentationIntegrationTest.groovy

            def pattern = Pattern.compile("Transforming " + fileName + ".* with (.*)")
            for (def line : output.readLines()) {
                def matcher = pattern.matcher(line)
                if (matcher.matches()) {
                    transforms.add(matcher.group(1))
                }
            }
            return transforms
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 15:08:33 UTC 2024
    - 29K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    		objToUpdate, patchErr = p.mechanism.createNewObject(ctx)
    	} else {
    		objToUpdate, patchErr = p.mechanism.applyPatchToCurrentObject(ctx, currentObject)
    	}
    
    	if patchErr != nil {
    		return nil, patchErr
    	}
    
    	objToUpdateHasUID, err := hasUID(objToUpdate)
    	if err != nil {
    		return nil, err
    	}
    	if objToUpdateHasUID && !currentObjectHasUID {
    		accessor, err := meta.Accessor(objToUpdate)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/discovery/token/token_test.go

    		cfg                      *kubeadmapi.Discovery
    		configMap                *fakeConfigMap
    		delayedJWSSignaturePatch bool
    		expectedError            bool
    	}{
    		{
    			// This is the default behavior. The JWS signature is patched after the cluster-info ConfigMap is created
    			name:        "valid: retrieve a valid kubeconfig with CA verification and delayed JWS signature",
    			tokenID:     "123456",
    			tokenSecret: "abcdef1234567890",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top