Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for PatchOptions (0.46 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    	return err
    }
    
    // Patch applies the patch and returns the patched example.
    func (c *FakeExamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewPatchSubresourceAction(examplesResource, c.ns, name, pt, data, subresources...), emptyResult)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pkg/scheduler/util/utils.go

    	}
    
    	if "{}" == string(patchBytes) {
    		return nil
    	}
    
    	patchFn := func() error {
    		_, err := cs.CoreV1().Pods(old.Namespace).Patch(ctx, old.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}, "status")
    		return err
    	}
    
    	return retry.OnError(retry.DefaultBackoff, Retriable, patchFn)
    }
    
    // DeletePod deletes the given <pod> from API server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. common-protos/k8s.io/api/admission/v1beta1/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