Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,291 for getUid (0.12 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonExpirationStrategyTest.groovy

            final long lastIdleTime = lastIdle == -1L ? id * 1000 : lastIdle;
            Address daemonAddress = createAddress(id)
            DaemonContext context = Mock(DaemonContext) {
                _ * getUid() >> uid
            }
            DaemonInfo info = new DaemonInfo(daemonAddress, context, "password".bytes, Busy, new MockClock(lastIdleTime))
            info.setState(state)
            registry.store(info)
            return info
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/group/token_group_adder.go

    	newGroups = append(newGroups, r.User.GetGroups()...)
    	newGroups = append(newGroups, g.Groups...)
    
    	ret := *r // shallow copy
    	ret.User = &user.DefaultInfo{
    		Name:   r.User.GetName(),
    		UID:    r.User.GetUID(),
    		Groups: newGroups,
    		Extra:  r.User.GetExtra(),
    	}
    	return &ret, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_utils.go

    func hasNonControllerOwner(claim *v1.PersistentVolumeClaim, set *apps.StatefulSet, pod *v1.Pod) bool {
    	for _, ownerRef := range claim.GetOwnerReferences() {
    		if ownerRef.UID == set.GetUID() || ownerRef.UID == pod.GetUID() {
    			if ownerRef.Controller == nil || !*ownerRef.Controller {
    				return true
    			}
    		}
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authentication/group/authenticated_group_adder.go

    	newGroups = append(newGroups, r.User.GetGroups()...)
    	newGroups = append(newGroups, user.AllAuthenticated)
    
    	ret := *r // shallow copy
    	ret.User = &user.DefaultInfo{
    		Name:   r.User.GetName(),
    		UID:    r.User.GetUID(),
    		Groups: newGroups,
    		Extra:  r.User.GetExtra(),
    	}
    	return &ret, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go

    // a default value.
    type Object interface {
    	GetNamespace() string
    	SetNamespace(namespace string)
    	GetName() string
    	SetName(name string)
    	GetGenerateName() string
    	SetGenerateName(name string)
    	GetUID() types.UID
    	SetUID(uid types.UID)
    	GetResourceVersion() string
    	SetResourceVersion(version string)
    	GetGeneration() int64
    	SetGeneration(generation int64)
    	GetSelfLink() string
    	SetSelfLink(selfLink string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  6. pkg/controller/controller_ref_manager.go

    	controllerRef := metav1.GetControllerOfNoCopy(obj)
    	if controllerRef != nil {
    		if controllerRef.UID != m.Controller.GetUID() {
    			// Owned by someone else. Ignore.
    			return false, nil
    		}
    		if match(obj) {
    			// We already own it and the selector matches.
    			// Return true (successfully claimed) before checking deletion timestamp.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/rest/update.go

    		return err
    	}
    	objectMeta.SetGeneration(oldMeta.GetGeneration())
    
    	strategy.PrepareForUpdate(ctx, obj, old)
    
    	// Use the existing UID if none is provided
    	if len(objectMeta.GetUID()) == 0 {
    		objectMeta.SetUID(oldMeta.GetUID())
    	}
    	// ignore changes to timestamp
    	if oldCreationTime := oldMeta.GetCreationTimestamp(); !oldCreationTime.IsZero() {
    		objectMeta.SetCreationTimestamp(oldMeta.GetCreationTimestamp())
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  8. src/syscall/exec_freebsd_test.go

    		if jailed != 1 {
    			t.Fatalf("jailed = %d, want 1", jailed)
    		}
    		return
    	}
    
    	testenv.MustHaveGoBuild(t)
    	// Make sure we are running as root, so we have permissions to create
    	// and remove jails.
    	if os.Getuid() != 0 {
    		t.Skip("kernel prohibits jail system calls in unprivileged process")
    	}
    
    	jid, root := prepareJail(t)
    
    	// Since jail attach does an implicit chroot to the jail's path,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 20:38:48 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. pkg/registry/authentication/selfsubjectreview/rest.go

    			CreationTimestamp: metav1.NewTime(time.Now()),
    		},
    		Status: authenticationapi.SelfSubjectReviewStatus{
    			UserInfo: authenticationapi.UserInfo{
    				Username: user.GetName(),
    				UID:      user.GetUID(),
    				Groups:   user.GetGroups(),
    				Extra:    make(map[string]authenticationapi.ExtraValue, len(extra)),
    			},
    		},
    	}
    	for key, attr := range extra {
    		selfSR.Status.UserInfo.Extra[key] = attr
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go

    	subresource := invocation.Subresource
    	requestGVK := attr.GetKind()
    	requestGVR := attr.GetResource()
    	requestSubResource := attr.GetSubresource()
    	aUserInfo := attr.GetUserInfo()
    	userInfo := authenticationv1.UserInfo{
    		Extra:    make(map[string]authenticationv1.ExtraValue),
    		Groups:   aUserInfo.GetGroups(),
    		UID:      aUserInfo.GetUID(),
    		Username: aUserInfo.GetName(),
    	}
    	dryRun := attr.IsDryRun()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top