Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for uids (0.12 sec)

  1. pkg/controller/garbagecollector/dump_test.go

    				{F: types.UID("delta"), T: types.UID("foxtrot")},
    				{F: types.UID("foxtrot"), T: types.UID("golf")},
    			},
    		},
    		{
    			name: "two-chains-from-child",
    			uidToNode: map[types.UID]*node{
    				types.UID("alpha"):   alphaNode(),
    				types.UID("bravo"):   bravoNode(),
    				types.UID("charlie"): charlieNode(),
    				types.UID("delta"):   deltaNode(),
    				types.UID("foxtrot"): foxtrotNode(),
    				types.UID("golf"):    golfNode(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/users/users_linux_test.go

    		groupsToCreate []*entry
    		uids           []int64
    		gids           []int64
    		expectedUsers  []*entry
    		expectedGroups []*entry
    		expectedError  bool
    	}{
    		{
    			name: "not enough UIDs",
    			usersToCreate: []*entry{
    				{name: "foo"},
    				{name: "bar"},
    			},
    			uids:          []int64{100},
    			expectedError: true,
    		},
    		{
    			name: "not enough GIDs",
    			groupsToCreate: []*entry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 16.3K bytes
    - Viewed (0)
  3. pkg/kubelet/userns/userns_manager.go

    			return nil, err
    		}
    	}
    
    	var uids []*runtimeapi.IDMapping
    	var gids []*runtimeapi.IDMapping
    
    	for _, u := range userNs.UIDMappings {
    		uids = append(uids, &runtimeapi.IDMapping{
    			HostId:      u.HostId,
    			ContainerId: u.ContainerId,
    			Length:      u.Length,
    		})
    	}
    	for _, g := range userNs.GIDMappings {
    		gids = append(gids, &runtimeapi.IDMapping{
    			HostId:      g.HostId,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. cmd/local-locker.go

    		defer l.mutex.Unlock()
    		if len(args.UID) == 0 {
    			for _, resource := range args.Resources {
    				lris, ok := l.lockMap[resource]
    				if !ok {
    					continue
    				}
    				// Collect uids, so we don't mutate while we delete
    				uids := make([]string, 0, len(lris))
    				for _, lri := range lris {
    					uids = append(uids, lri.UID)
    				}
    
    				// Delete collected uids:
    				for _, uid := range uids {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. cmd/local-locker_test.go

    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    		rUIDs = append(rUIDs, uid)
    
    		// RLock twice, different uid
    		uid = mustGetUUID()
    		arg.UID = uid
    		ok, err = l.RLock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    		rResources[i] = name
    		rUIDs = append(rUIDs, uid)
    	}
    	// Each Lock has m entries
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/users/users_linux.go

    // and assigns UIDs and GIDs to the users and groups to be created based on a list of provided UIDs and GIDs.
    // Returns an error if not enough UIDs or GIDs are passed. It does not perform any other validation.
    func assignUserAndGroupIDs(groups, usersToCreate, groupsToCreate []*entry, uids, gids []int64) error {
    	if len(gids) < len(groupsToCreate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  7. pkg/kubelet/pod/pod_manager.go

    	// TranslatePodUID returns the actual UID of a pod. If the UID belongs to
    	// a mirror pod, returns the UID of its static pod. Otherwise, returns the
    	// original UID.
    	//
    	// All public-facing functions should perform this translation for UIDs
    	// because user may provide a mirror pod UID, which is not recognized by
    	// internal Kubelet functions.
    	TranslatePodUID(uid types.UID) kubetypes.ResolvedPodUID
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. pkg/api/v1/endpoints/util_test.go

    package endpoints
    
    import (
    	"reflect"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    func podRef(uid string) *v1.ObjectReference {
    	ref := v1.ObjectReference{UID: types.UID(uid)}
    	return &ref
    }
    
    func TestPackSubsets(t *testing.T) {
    	// The downside of table-driven tests is that some things have to live outside the table.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 16.6K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/batch/v1/generated.proto

    }
    
    // UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't
    // been accounted in Job status counters.
    message UncountedTerminatedPods {
      // succeeded holds UIDs of succeeded Pods.
      // +listType=set
      // +optional
      repeated string succeeded = 1;
    
      // failed holds UIDs of failed Pods.
      // +listType=set
      // +optional
      repeated string failed = 2;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. pkg/controller/controller_utils.go

    	u.uidStoreLock.Lock()
    	defer u.uidStoreLock.Unlock()
    
    	uids := u.GetUIDs(rcKey)
    	if uids != nil && uids.Has(deleteKey) {
    		logger.V(4).Info("Controller received delete for pod", "controller", rcKey, "key", deleteKey)
    		u.ControllerExpectationsInterface.DeletionObserved(logger, rcKey)
    		uids.Delete(deleteKey)
    	}
    }
    
    // DeleteExpectations deletes the UID set and invokes DeleteExpectations on the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
Back to top