Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 170 for ObjectReference (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.deepcopy.go

    func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
    func (in *ObjectReference) DeepCopy() *ObjectReference {
    	if in == nil {
    		return nil
    	}
    	out := new(ObjectReference)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 06 19:08:27 UTC 2021
    - 7.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/audit/log/backend_test.go

    					"system:masters",
    					"system:authenticated",
    				},
    			},
    			ObjectRef: &auditinternal.ObjectReference{
    				Namespace: "default",
    			},
    		},
    		{
    			AuditID: types.UID(uuid.New().String()),
    			Level:   auditinternal.LevelMetadata,
    			ObjectRef: &auditinternal.ObjectReference{
    				Resource:    "foo",
    				APIVersion:  "v1",
    				Subresource: "bar",
    			},
    		},
    	} {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 08 06:37:26 UTC 2022
    - 5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/audit/zz_generated.deepcopy.go

    func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
    func (in *ObjectReference) DeepCopy() *ObjectReference {
    	if in == nil {
    		return nil
    	}
    	out := new(ObjectReference)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 06 19:08:27 UTC 2021
    - 7.9K bytes
    - Viewed (0)
  4. pkg/controller/serviceaccount/tokens_controller_test.go

    }
    
    // emptySecretReferences is used by a service account without any secrets
    func emptySecretReferences() []v1.ObjectReference {
    	return []v1.ObjectReference{}
    }
    
    // missingSecretReferences is used by a service account that references secrets which do no exist
    func missingSecretReferences() []v1.ObjectReference {
    	return []v1.ObjectReference{{Name: "missing-secret-1"}}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  5. pkg/controller/garbagecollector/garbagecollector_test.go

    }
    
    func makeAddEvent(identity objectReference, owners ...objectReference) *event {
    	gv, err := schema.ParseGroupVersion(identity.APIVersion)
    	if err != nil {
    		panic(err)
    	}
    	return &event{
    		eventType: addEvent,
    		gvk:       gv.WithKind(identity.Kind),
    		obj:       makeObj(identity, owners...),
    	}
    }
    
    func makeVirtualDeleteEvent(identity objectReference, owners ...objectReference) *event {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  6. pkg/kubelet/container/ref_test.go

    		}
    	)
    
    	cases := []struct {
    		name      string
    		pod       *v1.Pod
    		container *v1.Container
    		expected  *v1.ObjectReference
    		success   bool
    	}{
    		{
    			name: "by-name",
    			pod:  &okPod,
    			container: &v1.Container{
    				Name: "by-name",
    			},
    			expected: &v1.ObjectReference{
    				Kind:            "Pod",
    				APIVersion:      "v1",
    				Name:            "ok",
    				Namespace:       "test-ns",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 09:38:23 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  7. pkg/kubelet/oom/oom_watcher_linux_test.go

    	numExpectedOomEvents := len(oomInstancesToStream)
    
    	fakeStreamer := &fakeStreamer{
    		oomInstancesToStream: oomInstancesToStream,
    	}
    
    	fakeRecorder := record.NewFakeRecorder(numExpectedOomEvents)
    	node := &v1.ObjectReference{}
    
    	oomWatcher := &realWatcher{
    		recorder:    fakeRecorder,
    		oomStreamer: fakeStreamer,
    	}
    	assert.NoError(t, oomWatcher.Start(node))
    
    	eventsRecorded := getRecordedEvents(fakeRecorder, numExpectedOomEvents)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 09 06:25:28 UTC 2020
    - 5.1K bytes
    - Viewed (0)
  8. pkg/controller/garbagecollector/uid_cache.go

    		cache: lru.New(maxCacheEntries),
    	}
    }
    
    // Add adds a uid to the cache.
    func (c *ReferenceCache) Add(reference objectReference) {
    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    	c.cache.Add(reference, nil)
    }
    
    // Has returns if a uid is in the cache.
    func (c *ReferenceCache) Has(reference objectReference) bool {
    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    	_, found := c.cache.Get(reference)
    	return found
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 17 15:42:48 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  9. pkg/controller/garbagecollector/graph_builder_test.go

    	)
    
    	orderedNamespacedReferences := []objectReference{
    		makeID("v1", "kind", "ns1", "name", "uid"),
    		makeID("v2", "kind", "ns1", "name", "uid"),
    		makeID("v3", "kind", "ns1", "name", "uid"),
    		makeID("v4", "kind", "ns1", "name", "uid"),
    		makeID("v5", "kind", "ns1", "name", "uid"),
    	}
    	orderedClusterReferences := []objectReference{
    		makeID("v1", "kind", "", "name", "uid"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 17 15:49:32 UTC 2020
    - 7.6K bytes
    - Viewed (0)
  10. pkg/kubelet/container/ref.go

    // GenerateContainerRef returns an *v1.ObjectReference which references the given container
    // within the given pod. Returns an error if the reference can't be constructed or the
    // container doesn't actually belong to the pod.
    func GenerateContainerRef(pod *v1.Pod, container *v1.Container) (*v1.ObjectReference, error) {
    	fieldPath, err := fieldPath(pod, container)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 00:55:30 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top