Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 92 for PatchOptions (0.16 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    	tests := []struct {
    		opts      metav1.PatchOptions
    		patchType types.PatchType
    	}{{
    		opts: metav1.PatchOptions{
    			Force:        boolPtr(true),
    			FieldManager: "kubectl",
    		},
    		patchType: types.ApplyPatchType,
    	}, {
    		opts: metav1.PatchOptions{
    			FieldManager: "kubectl",
    		},
    		patchType: types.ApplyPatchType,
    	}, {
    		opts:      metav1.PatchOptions{},
    		patchType: types.MergePatchType,
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/informers_test.go

    		constants.DataplaneModeLabel, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	waitForMockCalls()
    
    	assertPodAnnotated(t, client, pod)
    
    	// Assert expected calls actually made
    	fs.AssertExpectations(t)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/crdclient/types.gen.go

    		if err != nil {
    			return nil, err
    		}
    		return c.Istio().SecurityV1beta1().AuthorizationPolicies(orig.Namespace).
    			Patch(context.TODO(), orig.Name, typ, patchBytes, metav1.PatchOptions{FieldManager: "pilot-discovery"})
    	case gvk.DestinationRule:
    		oldRes := &apiistioioapinetworkingv1alpha3.DestinationRule{
    			ObjectMeta: origMeta,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/scope_test.go

    			assert.True(t, apierrors.IsNotFound(err))
    
    			_, err = otherScopeClient.Patch(context.TODO(), name, types.MergePatchType, []byte(`{"metadata":{"annotations":{"test":"1"}}}`), metav1.PatchOptions{}, "status")
    			assert.True(t, apierrors.IsNotFound(err))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher_test.go

    		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
    	addEvent, err := processAddEvent(payload)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    			err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "PatchOptions"}, "", errs)
    			scope.err(err, w, req)
    			return
    		}
    		options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("PatchOptions"))
    
    		admit = admission.WithAudit(admit)
    
    		audit.LogRequestPatch(req.Context(), patchBytes)
    		span.AddEvent("Recorded the audit event")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/subresources_test.go

    			if err == nil {
    				t.Fatalf("unexpected non-error: strategic merge patch is not supported for custom resources")
    			}
    
    			_, err = noxuResourceClient.Patch(context.TODO(), "foo", types.StrategicMergePatchType, patch, metav1.PatchOptions{}, "scale")
    			if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 12 17:35:34 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil.go

    	_, err := client.CoreV1().
    		Pods(pod.Namespace).
    		Patch(
    			context.Background(),
    			pod.Name,
    			types.MergePatchType,
    			annotationPatch,
    			metav1.PatchOptions{},
    			// Both "pods" and "pods/status" can mutate the metadata. However, pods/status is lower privilege, so we use that instead.
    			"status",
    		)
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 17:18:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. pkg/test/framework/components/namespace/kube.go

    	return n.forEachCluster(func(_ int, c cluster.Cluster) error {
    		_, err := c.Kube().CoreV1().Namespaces().Patch(context.TODO(), n.name, types.JSONPatchType, []byte(nsLabelPatch), metav1.PatchOptions{})
    		return err
    	})
    }
    
    // removeNamespaceLabel removes namespace label with the given key
    func (n *kubeNamespace) removeNamespaceLabel(key string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/test/integration/versioning_test.go

    			patch := []byte(fmt.Sprintf(`{"i": %d}`, i))
    			i++
    
    			_, err := noxuNamespacedResourceClientV1beta1.Patch(context.TODO(), "foo", types.MergePatchType, patch, metav1.PatchOptions{})
    			if err != nil {
    				// work around "grpc: the client connection is closing" error
    				// TODO: fix the grpc error
    				if err, ok := err.(*errors.StatusError); ok && err.Status().Code == http.StatusInternalServerError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 13:10:47 UTC 2021
    - 8.2K bytes
    - Viewed (0)
Back to top