Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for pathchk (0.3 sec)

  1. operator/cmd/mesh/manifest_shared_test.go

    }
    
    var interceptorFunc = interceptor.Funcs{Patch: func(
    	ctx context.Context,
    	clnt client.WithWatch,
    	obj client.Object,
    	patch client.Patch,
    	opts ...client.PatchOption,
    ) error {
    	// Apply patches are supposed to upsert, but fake client fails if the object doesn't exist,
    	// if an apply patch occurs for an object that doesn't yet exist, create it.
    	if patch.Type() != types.ApplyPatchType {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  2. cni/pkg/nodeagent/informers_test.go

    	mt.Assert(EventTotals.Name(), map[string]string{"type": "update"}, monitortest.AtLeast(4))
    
    	waitForMockCalls()
    
    	assertPodNotAnnotated(t, client, pod)
    
    	// patch a test label to emulate a POD update event
    	_, err = client.Kube().CoreV1().Pods(pod.Namespace).Patch(ctx, pod.Name,
    		types.MergePatchType, []byte(`{"metadata":{"labels":{"test":"update"}}}`), metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	// wait for an update events
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/asm.go

    		return
    	}
    
    	p.append(prog, cond, true)
    }
    
    func (p *Parser) patch() {
    	for _, patch := range p.toPatch {
    		targetProg := p.labels[patch.label]
    		if targetProg == nil {
    			p.errorf("undefined label %s", patch.label)
    			return
    		}
    		p.branch(patch.addr, targetProg)
    	}
    	p.toPatch = p.toPatch[:0]
    }
    
    func (p *Parser) branch(addr *obj.Addr, target *obj.Prog) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/cni-watcher_test.go

    	// label the namespace
    	labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":"%s"}}}`,
    		constants.DataplaneModeLabel, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	client.RunAndWait(ctx.Done())
    
    	payload, _ := json.Marshal(valid)
    
    	// serialize our fake plugin event
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    	input         []lex.Token
    	inputPos      int
    	pendingLabels []string // Labels to attach to next instruction.
    	labels        map[string]*obj.Prog
    	toPatch       []Patch
    	addr          []obj.Addr
    	arch          *arch.Arch
    	ctxt          *obj.Link
    	firstProg     *obj.Prog
    	lastProg      *obj.Prog
    	dataAddr      map[string]int64 // Most recent address for DATA for this symbol.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. tests/migrate_test.go

    	}
    
    	DB.Exec(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`)
    
    	err = DB.AutoMigrate(&MissPKUser{}, &MissPKLanguage{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    
    	// patch
    	err = DB.AutoMigrate(&MissPKUser{}, &MissPKLanguage{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    }
    
    func TestCurrentTimestamp(t *testing.T) {
    	if DB.Dialector.Name() != "mysql" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. cni/pkg/util/podutil.go

    	return pod.Namespace == systemNs && pod.GetLabels()["app"] == "ztunnel"
    }
    
    func AnnotateEnrolledPod(client kubernetes.Interface, pod *metav1.ObjectMeta) error {
    	_, err := client.CoreV1().
    		Pods(pod.Namespace).
    		Patch(
    			context.Background(),
    			pod.Name,
    			types.MergePatchType,
    			annotationPatch,
    			metav1.PatchOptions{},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. istioctl/pkg/kubeinject/kubeinject.go

    	}
    	ar, err = kube.AdmissionReviewKubeToAdapter(out)
    	if err != nil {
    		return nil, fmt.Errorf("could not decode object: %v", err)
    	}
    
    	return ar.Response.Patch, nil
    }
    
    var (
    	runtimeScheme = func() *runtime.Scheme {
    		r := runtime.NewScheme()
    		r.AddKnownTypes(admissionv1beta1.SchemeGroupVersion, &admissionv1beta1.AdmissionReview{})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. cni/pkg/repair/repaircontroller.go

    	// Both "pods" and "pods/status" can mutate the metadata. However, pods/status is lower privilege, so we use that instead.
    	_, err := c.client.Kube().CoreV1().Pods(pod.Namespace).Patch(context.Background(), pod.Name, types.MergePatchType,
    		[]byte(patchBytes), metav1.PatchOptions{}, "status")
    	if err != nil {
    		repairLog.Errorf("Failed to update pod: %s", err)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  10. istioctl/pkg/waypoint/waypoint.go

    			}
    			gwc := kubeClient.GatewayAPI().GatewayV1().Gateways(ctx.NamespaceOrDefault(ctx.Namespace()))
    			b, err := yaml.Marshal(gw)
    			if err != nil {
    				return err
    			}
    			_, err = gwc.Patch(context.Background(), gw.Name, types.ApplyPatchType, b, metav1.PatchOptions{
    				Force:        nil,
    				FieldManager: "istioctl",
    			})
    			if err != nil {
    				if errors.IsNotFound(err) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top