Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,128 for Obj (0.06 sec)

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

    func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewGetAction(examplesResource, c.ns, name), emptyResult)
    
    	if obj == nil {
    		return emptyResult, err
    	}
    	return obj.(*v1.Example), err
    }
    
    // List takes label and field selectors, and returns the list of Examples that match those selectors.
    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. plugin/pkg/auth/authorizer/node/graph_populator.go

    	}
    	pv, ok := obj.(*corev1.PersistentVolume)
    	if !ok {
    		klog.Infof("unexpected type %T", obj)
    		return
    	}
    	g.graph.DeletePV(pv.Name)
    }
    
    func (g *graphPopulator) addVolumeAttachment(obj interface{}) {
    	g.updateVolumeAttachment(nil, obj)
    }
    
    func (g *graphPopulator) updateVolumeAttachment(oldObj, obj interface{}) {
    	attachment := obj.(*storagev1.VolumeAttachment)
    	if oldObj != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. pkg/apis/batch/v1/defaults.go

    	if obj.Spec.BackoffLimit == nil {
    		if obj.Spec.BackoffLimitPerIndex != nil {
    			obj.Spec.BackoffLimit = utilpointer.Int32(math.MaxInt32)
    		} else {
    			obj.Spec.BackoffLimit = utilpointer.Int32(6)
    		}
    	}
    	labels := obj.Spec.Template.Labels
    	if labels != nil && len(obj.Labels) == 0 {
    		obj.Labels = labels
    	}
    	if obj.Spec.CompletionMode == nil {
    		mode := batchv1.NonIndexedCompletion
    		obj.Spec.CompletionMode = &mode
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 20:51:40 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/meta/interfaces.go

    	SetGenerateName(obj runtime.Object, name string) error
    
    	UID(obj runtime.Object) (types.UID, error)
    	SetUID(obj runtime.Object, uid types.UID) error
    
    	SelfLink(obj runtime.Object) (string, error)
    	SetSelfLink(obj runtime.Object, selfLink string) error
    
    	Labels(obj runtime.Object) (map[string]string, error)
    	SetLabels(obj runtime.Object, labels map[string]string) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  5. pkg/kubelet/util/cache/object_cache.go

    		}
    		err = c.cache.Add(objectEntry{
    			key: key,
    			obj: obj,
    		})
    		if err != nil {
    			return nil, err
    		}
    		return obj, nil
    	}
    	return value.(objectEntry).obj, nil
    }
    
    // Add adds objectEntry by using a unique string as the key.
    func (c *ObjectCache) Add(key string, obj interface{}) error {
    	return c.cache.Add(objectEntry{key: key, obj: obj})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 25 04:07:36 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  6. pkg/registry/core/resourcequota/strategy.go

    func (resourcequotaStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	resourcequota := obj.(*api.ResourceQuota)
    	resourcequota.Status = api.ResourceQuotaStatus{}
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (resourcequotaStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newResourcequota := obj.(*api.ResourceQuota)
    	oldResourcequota := old.(*api.ResourceQuota)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 18 17:07:29 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/defaults.go

    		obj.Names.Singular = strings.ToLower(obj.Names.Kind)
    	}
    	if len(obj.Names.ListKind) == 0 && len(obj.Names.Kind) > 0 {
    		obj.Names.ListKind = obj.Names.Kind + "List"
    	}
    	if obj.Conversion == nil {
    		obj.Conversion = &CustomResourceConversion{
    			Strategy: NoneConverter,
    		}
    	}
    }
    
    // SetDefaults_ServiceReference sets defaults for Webhook's ServiceReference
    func SetDefaults_ServiceReference(obj *ServiceReference) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 15 16:27:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  8. src/go/parser/testdata/resolution/issue45136.src

    package issue45136
    
    type obj /* =@obj */ struct {
    	name /*=@name */ string
    }
    
    func _() {
    	var foo /* =@foo */ = "foo"
    	obj /* @obj */ ["foo"]
    	obj /* @obj */ .run()
    	obj /* @obj */ {
    		name: foo /* @foo */,
    	}
    	obj /* @obj */ {
    		name: "bar",
    	}.run()
    
    	var _ = File{key: obj /* @obj */ {}}
    	var _ = File{obj /* @obj */ {}}
    
    	[]obj /* @obj */ {foo /* @foo */}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 16 21:19:23 UTC 2021
    - 556 bytes
    - Viewed (0)
  9. pkg/registry/storage/storageclass/strategy.go

    func (storageClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (storageClassStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	errorList := validation.ValidateStorageClass(obj.(*storage.StorageClass))
    	return append(errorList, validation.ValidateStorageClassUpdate(obj.(*storage.StorageClass), old.(*storage.StorageClass))...)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 25 07:15:34 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/bench_test.go

    	podBytes := getObjectBytes("pod.yaml")
    
    	var obj *corev1.Pod
    	if err := yaml.Unmarshal(podBytes, &obj); err != nil {
    		b.Fatalf("Failed to parse yaml object: %v", err)
    	}
    	obj.Spec.Containers[0].Image = "nginx:latest"
    	objs := []*corev1.Pod{obj}
    	obj = obj.DeepCopy()
    	obj.Spec.Containers[0].Image = "nginx:4.3"
    	objs = append(objs, obj)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top