Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 92 for PatchOptions (0.26 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    	return &CompatibilityTestOptions{Scheme: scheme}
    }
    
    // coreKinds includes kinds that typically only need to be tested in a single API group
    var coreKinds = sets.NewString(
    	"CreateOptions", "UpdateOptions", "PatchOptions", "DeleteOptions",
    	"GetOptions", "ListOptions", "ExportOptions",
    	"WatchEvent",
    )
    
    func (c *CompatibilityTestOptions) Complete(t *testing.T) *CompatibilityTestOptions {
    	t.Helper()
    
    	// Verify scheme
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/addons/dns/dns.go

    	if _, err := client.AppsV1().Deployments(dnsDeployment.ObjectMeta.Namespace).Patch(context.TODO(), dnsDeployment.Name, types.StrategicMergePatchType, []byte(patch), metav1.PatchOptions{}); err != nil {
    		return errors.Wrap(err, "unable to patch the CoreDNS deployment")
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go

    	patch := []byte(`{"alpha": "abc", "beta": 42.0, "unspecified": "bar", "metadata": {"unspecified": "bar", "labels":{"foo":"bar"}}}`)
    	if foo, err = fooClient.Patch(context.TODO(), "foo", types.MergePatchType, patch, metav1.PatchOptions{}); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if _, found, _ := unstructured.NestedFieldNoCopy(foo.Object, "unspecified"); found {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint.go

    			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) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/apiclient/idempotency.go

    			*lastError = errors.Wrap(err, "failed to create two way merge patch")
    			return false, *lastError
    		}
    
    		if _, err := client.CoreV1().Nodes().Patch(ctx, n.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}); err != nil {
    			*lastError = errors.Wrapf(err, "error patching Node %q", n.Name)
    			if apierrors.IsTimeout(err) || apierrors.IsConflict(err) || apierrors.IsServerTimeout(err) || apierrors.IsServiceUnavailable(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. operator/pkg/helmreconciler/reconciler.go

    		}
    
    		t := true
    		_, err := kubeClient.Dynamic().Resource(ogvr).Namespace(obj.GetNamespace()).Patch(
    			context.TODO(), obj.GetName(), types.ApplyPatchType, []byte(yml), metav1.PatchOptions{
    				Force:        &t,
    				FieldManager: fieldOwnerOperator,
    			})
    		if err != nil {
    			return fmt.Errorf("failed to apply YAML: %w", err)
    		}
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 22 08:32:23 UTC 2024
    - 22K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    		endpoints.AddObjectParams(b.ws, route, &metav1.ListOptions{})
    	case "put":
    		endpoints.AddObjectParams(b.ws, route, &metav1.UpdateOptions{})
    	case "patch":
    		endpoints.AddObjectParams(b.ws, route, &metav1.PatchOptions{})
    	case "post":
    		endpoints.AddObjectParams(b.ws, route, &metav1.CreateOptions{})
    	case "delete":
    		endpoints.AddObjectParams(b.ws, route, &metav1.DeleteOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. pkg/test/framework/components/echo/kube/deployment.go

    		deploymentNames = append(deploymentNames, fmt.Sprintf("%s-%s", d.cfg.Service, s.Version))
    	}
    	curTimestamp := time.Now().Format(time.RFC3339)
    	for _, deploymentName := range deploymentNames {
    		patchOpts := metav1.PatchOptions{}
    		patchData := fmt.Sprintf(`{
    			"spec": {
    				"template": {
    					"metadata": {
    						"annotations": {
    							"kubectl.kubernetes.io/restartedAt": %q
    						}
    					}
    				}
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/deploymentcontroller.go

    			c := client.Dynamic().Resource(gvr).Namespace(namespace)
    			t := true
    			_, err := c.Patch(context.Background(), name, types.ApplyPatchType, data, metav1.PatchOptions{
    				Force:        &t,
    				FieldManager: features.ManagedGatewayController,
    			}, subresources...)
    			return err
    		},
    		gateways:       gateways,
    		gatewayClasses: gatewayClasses,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. pkg/controller/daemon/update.go

    			}
    			patchJSON, err := json.Marshal(patchRaw)
    			if err != nil {
    				return nil, err
    			}
    			_, err = dsc.kubeClient.CoreV1().Pods(ds.Namespace).Patch(ctx, pod.Name, types.MergePatchType, patchJSON, metav1.PatchOptions{})
    			if err != nil {
    				return nil, err
    			}
    		}
    	}
    	// Clean up duplicates
    	for _, cur := range curHistories {
    		if cur.Name == keepCur.Name {
    			continue
    		}
    		// Remove duplicates
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top