Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 77 for PatchOptions (0.16 sec)

  1. staging/src/k8s.io/api/admission/v1/types_swagger_doc_generated.go

    }
    
    func (AdmissionRequest) SwaggerDoc() map[string]string {
    	return map_AdmissionRequest
    }
    
    var map_AdmissionResponse = map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. pkg/controller/storageversionmigrator/storageversionmigrator.go

    		if err != nil {
    			return err
    		}
    
    		_, err = svmc.dynamicClient.Resource(gvr).
    			Namespace(namespace).
    			Patch(ctx,
    				name,
    				types.ApplyPatchType,
    				data,
    				metav1.PatchOptions{
    					FieldManager: svmc.controllerName,
    				},
    			)
    		if err != nil {
    			// in case of NotFound or Conflict, we can stop processing migration for that resource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go

    	return err
    }
    
    // Patch applies the patch and returns the patched customResourceDefinition.
    func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error) {
    	emptyResult := &v1.CustomResourceDefinition{}
    	obj, err := c.Fake.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. pkg/controller/testutil/test_utils.go

    func (m *FakeNodeHandler) PatchStatus(ctx context.Context, nodeName string, data []byte) (*v1.Node, error) {
    	m.RequestCount++
    	return m.Patch(ctx, nodeName, types.StrategicMergePatchType, data, metav1.PatchOptions{}, "status")
    }
    
    // Watch watches Nodes in a fake store.
    func (m *FakeNodeHandler) Watch(_ context.Context, opts metav1.ListOptions) (watch.Interface, error) {
    	return watch.NewFake(), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. pkg/kube/kubetypes/types.go

    type WriteAPI[T runtime.Object] interface {
    	Create(ctx context.Context, object T, opts metav1.CreateOptions) (T, error)
    	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result T, err error)
    	Update(ctx context.Context, object T, opts metav1.UpdateOptions) (T, error)
    	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_customresourcedefinition.go

    	return err
    }
    
    // Patch applies the patch and returns the patched customResourceDefinition.
    func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) {
    	emptyResult := &v1beta1.CustomResourceDefinition{}
    	obj, err := c.Fake.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. pkg/serviceaccount/legacy.go

    		} else {
    			if _, err := v.secretsWriter.Secrets(secret.Namespace).Patch(ctx, secret.Name, types.MergePatchType, patchContent, metav1.PatchOptions{}); err != nil {
    				klog.Errorf("Failed to label legacy service account token %s/%s with last-used date, err: %v", secret.Name, secret.Namespace, err)
    			}
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. pkg/api/testing/serialization_test.go

    	// DeleteOptions, CreateOptions and UpdateOptions are only read in metav1
    	"DeleteOptions",
    	"CreateOptions",
    	"UpdateOptions",
    	"PatchOptions",
    )
    
    var commonKinds = []string{"Status", "ListOptions", "DeleteOptions", "GetOptions", "CreateOptions", "UpdateOptions", "PatchOptions"}
    
    // TestCommonKindsRegistered verifies that all group/versions registered with
    // the legacyscheme package have the common kinds.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  9. pkg/controller/servicecidrs/servicecidrs_controller.go

    		},
    	}
    	patchBytes, err := json.Marshal(patch)
    	if err != nil {
    		return err
    	}
    	_, err = c.client.NetworkingV1alpha1().ServiceCIDRs().Patch(ctx, cidr.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{})
    	if err != nil && !apierrors.IsNotFound(err) {
    		return err
    	}
    	klog.FromContext(ctx).V(4).Info("Added protection finalizer to ServiceCIDR", "ServiceCIDR", cidr.Name)
    	return nil
    
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/admission/v1/generated.proto

      // Operation might be a CREATE, in which case the Options will a
      // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`.
      // +optional
      optional k8s.io.apimachinery.pkg.runtime.RawExtension options = 12;
    }
    
    // AdmissionResponse describes an admission response.
    message AdmissionResponse {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top