Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 138 for createActions (0.26 sec)

  1. pkg/controller/resourceclaim/controller_test.go

    			stopInformers()
    			for _, pod := range tc.podsLater {
    				_, err := fakeKubeClient.CoreV1().Pods(pod.Namespace).Create(ctx, pod, metav1.CreateOptions{})
    				if err != nil {
    					t.Fatalf("unexpected error while creating pod: %v", err)
    				}
    			}
    
    			err = ec.syncHandler(context.TODO(), tc.key)
    			if err != nil && !tc.expectedError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. pkg/api/testing/serialization_test.go

    	"WatchEvent",
    	// ListOptions is now part of the meta group
    	"ListOptions",
    	// DeleteOptions, CreateOptions and UpdateOptions are only read in metav1
    	"DeleteOptions",
    	"CreateOptions",
    	"UpdateOptions",
    	"PatchOptions",
    )
    
    var commonKinds = []string{"Status", "ListOptions", "DeleteOptions", "GetOptions", "CreateOptions", "UpdateOptions", "PatchOptions"}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. plugin/pkg/admission/priority/admission_test.go

    			test.newClass,
    			nil,
    			scheduling.Kind("PriorityClass").WithVersion("version"),
    			"",
    			"",
    			scheduling.Resource("priorityclasses").WithVersion("version"),
    			"",
    			test.operation,
    			&metav1.CreateOptions{},
    			false,
    			test.userInfo,
    		)
    		err := ctrl.Validate(context.TODO(), attrs, nil)
    		klog.Infof("Got %v", err)
    		if err != nil && !test.expectError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 03 18:43:48 UTC 2022
    - 21.2K bytes
    - Viewed (0)
  4. pkg/kube/adapter.go

    	// e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be
    	// different than the options the caller provided. e.g. for a patch request the performed
    	// 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`.
    	Options runtime.RawExtension `json:"options,omitempty"`
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 10 16:40:00 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/storage/storage.go

    // Create ensures a pod is bound to a specific host.
    func (r *BindingREST) Create(ctx context.Context, name string, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (out runtime.Object, err error) {
    	binding, ok := obj.(*api.Binding)
    	if !ok {
    		return nil, errors.NewBadRequest(fmt.Sprintf("not a Binding object: %#v", obj))
    	}
    
    	if name != binding.Name {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    	return uo
    }
    
    // patchToCreateOptions creates an CreateOptions with the same field values as the provided PatchOptions.
    func patchToCreateOptions(po *metav1.PatchOptions) *metav1.CreateOptions {
    	if po == nil {
    		return nil
    	}
    	co := &metav1.CreateOptions{
    		DryRun:          po.DryRun,
    		FieldManager:    po.FieldManager,
    		FieldValidation: po.FieldValidation,
    	}
    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. pkg/controlplane/controller/kubernetesservice/controller_test.go

    			creates := []core.CreateAction{}
    			for _, action := range fakeClient.Actions() {
    				if action.GetVerb() == "create" {
    					creates = append(creates, action.(core.CreateAction))
    				}
    			}
    			if test.expectCreate != nil {
    				if len(creates) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 10:41:06 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/kube.go

    			ObjectMeta: metav1.ObjectMeta{
    				Labels:      nsLabels,
    				Annotations: nsAnnotations,
    				Name:        i.cfg.SystemNamespace,
    			},
    		}, metav1.CreateOptions{}); err != nil {
    			if errors.IsAlreadyExists(err) {
    				if _, err := c.Kube().CoreV1().Namespaces().Update(context.TODO(), &corev1.Namespace{
    					ObjectMeta: metav1.ObjectMeta{
    						Labels:      nsLabels,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. pkg/registry/flowcontrol/ensurer/strategy.go

    }
    
    // Client is the needed fragment of the typed generated client stubs for the given object type
    type client[ObjectType configurationObject] interface {
    	Create(ctx context.Context, obj ObjectType, opts metav1.CreateOptions) (ObjectType, error)
    	Update(ctx context.Context, obj ObjectType, opts metav1.UpdateOptions) (ObjectType, error)
    	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 14K bytes
    - Viewed (0)
  10. pkg/registry/apps/statefulset/storage/storage_test.go

    		if !apierrors.IsNotFound(err) {
    			t.Errorf("expected notfound, got %v", err)
    		}
    	}
    
    	if _, err := resourceStore.Create(ctx, validObj, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	{
    		applyBadUIDPatch := func() rest.TransformFunc {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top