Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 138 for createActions (0.38 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    			client.StorageV1().StorageClasses().Create(ctx, immediateSC, metav1.CreateOptions{})
    			client.StorageV1().StorageClasses().Create(ctx, waitSC, metav1.CreateOptions{})
    			client.StorageV1().StorageClasses().Create(ctx, waitHDDSC, metav1.CreateOptions{})
    			for _, node := range item.nodes {
    				client.CoreV1().Nodes().Create(ctx, node, metav1.CreateOptions{})
    			}
    			for _, pvc := range item.pvcs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  2. pkg/webhooks/validation/controller/controller.go

    				constants.AlwaysReject: "true",
    			},
    		},
    		Spec: networking.Gateway{},
    	}
    
    	createOptions := metav1.CreateOptions{DryRun: []string{metav1.DryRunAll}}
    	istioClient := c.client.Istio().NetworkingV1alpha3()
    	_, err := istioClient.Gateways(c.o.WatchedNamespace).Create(context.TODO(), invalidGateway, createOptions)
    	if kerrors.IsAlreadyExists(err) {
    		updateOptions := metav1.UpdateOptions{DryRun: []string{metav1.DryRunAll}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/helper.go

    	return m.CreateWithOptions(namespace, modify, obj, nil)
    }
    
    func (m *Helper) CreateWithOptions(namespace string, modify bool, obj runtime.Object, options *metav1.CreateOptions) (runtime.Object, error) {
    	if options == nil {
    		options = &metav1.CreateOptions{}
    	}
    	if m.ServerDryRun {
    		options.DryRun = []string{metav1.DryRunAll}
    	}
    	if m.FieldManager != "" {
    		options.FieldManager = m.FieldManager
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 26 03:45:13 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go

    		t.Fatal(err)
    	}
    	unstructured.SetNestedField(foo.Object, "foo", "metadata", "name")
    	foo, err = fooClient.Create(context.TODO(), foo, metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("Unable to create CR: %v", err)
    	}
    	t.Logf("CR created: %#v", foo.UnstructuredContent())
    
    	t.Logf("Checking that everything unknown inside ObjectMeta is gone")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 05:32:34 UTC 2023
    - 19K bytes
    - Viewed (0)
  5. plugin/pkg/admission/runtimeclass/admission_test.go

    			attrs := admission.NewAttributesRecord(tc.pod, nil, core.Kind("Pod").WithVersion("version"), tc.pod.Namespace, tc.pod.Name, core.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, &user.DefaultInfo{})
    
    			errs := setOverhead(attrs, tc.pod, tc.runtimeClass)
    			if tc.expectError {
    				assert.NotEmpty(t, errs)
    			} else {
    				assert.Empty(t, errs)
    			}
    		})
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 17 01:30:14 UTC 2022
    - 17.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go

    func (in *CreateOptions) DeepCopyInto(out *CreateOptions) {
    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	if in.DryRun != nil {
    		in, out := &in.DryRun, &out.DryRun
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateOptions.
    func (in *CreateOptions) DeepCopy() *CreateOptions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 32.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.conversion.go

    // Public to allow building arbitrary schemes.
    func RegisterConversions(s *runtime.Scheme) error {
    	if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*CreateOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_url_Values_To_v1_CreateOptions(a.(*url.Values), b.(*CreateOptions), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  8. tests/integration/helm/util.go

    			"istio.io/rev": revision,
    		}
    	}
    	createOptions := metav1.CreateOptions{DryRun: []string{metav1.DryRunAll}}
    	istioClient := ctx.Clusters().Default().Istio().NetworkingV1alpha3()
    	retry.UntilOrFail(ctx, func() bool {
    		_, err := istioClient.Gateways(IstioNamespace).Create(context.TODO(), invalidGateway, createOptions)
    		rejected := err != nil
    		return rejected
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    		_, err := ki.CoreV1().Namespaces().Create(context.TODO(), &v1.Namespace{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: n,
    				Labels: map[string]string{
    					"istio-injection": "enabled",
    				},
    			},
    		}, metav1.CreateOptions{})
    		if err != nil {
    			t.Fatalf("failed creating test namespace: %v", err)
    		}
    
    		// K8S 1.10 also checks if service account exists
    		_, err = ki.CoreV1().ServiceAccounts(n).Create(context.TODO(), &v1.ServiceAccount{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. pkg/registry/apps/replicaset/storage/storage_test.go

    	ctx := genericapirequest.WithNamespace(genericapirequest.NewContext(), rs.Namespace)
    	obj, err := storage.Create(ctx, &rs, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Errorf("Failed to create ReplicaSet, %v", err)
    	}
    	newRS := obj.(*apps.ReplicaSet)
    	return *newRS, nil
    }
    
    func validNewReplicaSet() *apps.ReplicaSet {
    	return &apps.ReplicaSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 17.7K bytes
    - Viewed (0)
Back to top