Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for cgroupns (0.17 sec)

  1. cni/pkg/nodeagent/fakes_test.go

    package nodeagent
    
    import (
    	"context"
    	"embed"
    	"io/fs"
    	"sync/atomic"
    	"syscall"
    
    	corev1 "k8s.io/api/core/v1"
    
    	"istio.io/istio/cni/pkg/iptables"
    )
    
    //go:embed testdata/cgroupns
    var fakeProc embed.FS
    
    type fakeZtunnel struct {
    	deletedPods atomic.Int32
    	addedPods   atomic.Int32
    	addError    error
    }
    
    func (f *fakeZtunnel) Run(ctx context.Context) {
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/podcgroupns_test.go

    		expectMsg         string
    	}{
    		{
    			name:              "no cgroups",
    			cgroupPaths:       []string{},
    			expectPodUID:      "",
    			expectContainerID: "",
    		},
    		{
    			name: "no container ID in cgroups",
    			cgroupPaths: []string{
    				"/user.slice",
    			},
    			expectPodUID:      "",
    			expectContainerID: "",
    		},
    		{
    			name: "one container ID in cgroups",
    			cgroupPaths: []string{
    				"/user.slice",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/podcgroupns.go

    	reader := bytes.NewReader(procCgroupData.Bytes())
    	var cgroups []Cgroup
    	scanner := bufio.NewScanner(reader)
    
    	for scanner.Scan() {
    		token := scanner.Text()
    		substrings := strings.SplitN(token, ":", 3)
    		if len(substrings) < 3 {
    			return nil, fmt.Errorf("cgroup entry contains %v colons, but expected at least 2 colons: %q", len(substrings), token)
    		}
    		cgroups = append(cgroups, Cgroup{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  4. cmd/iam-etcd-store_test.go

    		path, prefix, suffix string
    		expected             string
    	}{
    		{"config/iam/groups/foo.json", "config/iam/groups/", ".json", "foo"},
    		{"config/iam/groups/./foo.json", "config/iam/groups/", ".json", "foo"},
    		{"config/iam/groups/foo/config.json", "config/iam/groups/", "/config.json", "foo"},
    		{"config/iam/groups/foo/config.json", "config/iam/groups/", "config.json", "foo"},
    	}
    	for i, test := range specs {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  5. cmd/bucket-policy.go

    				}
    			}
    			if len(grps) > 0 {
    				args["groups"] = grps
    			}
    		}
    	}
    
    	// if not claim groups are available use the one with auth.Credentials
    	if _, ok := args["groups"]; !ok {
    		if len(groups) > 0 {
    			args["groups"] = groups
    		}
    	}
    
    	return args
    }
    
    // PolicyToBucketAccessPolicy converts a MinIO policy into a minio-go policy data structure.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  6. cmd/iam-etcd-store.go

    	defer cancel()
    
    	r, err := ies.client.Get(cctx, iamConfigGroupsPrefix, etcd.WithPrefix(), etcd.WithKeysOnly())
    	if err != nil {
    		return err
    	}
    
    	groups := etcdKvsToSet(iamConfigGroupsPrefix, r.Kvs)
    
    	// Reload config for all groups.
    	for _, group := range groups.ToSlice() {
    		if err = ies.loadGroup(ctx, group, m); err != nil && err != errNoSuchGroup {
    			return err
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  7. cmd/site-replication.go

    				return errSRIAMError(err)
    			}
    		}
    	}
    
    	// Next should be Groups for some of these users, LDAP might have some Group
    	// DNs here
    	{
    		groups := make(map[string]GroupInfo)
    		err := globalIAMSys.store.loadGroups(ctx, groups)
    		if err != nil {
    			return errSRBackendIssue(err)
    		}
    
    		for gname, group := range groups {
    			if err := c.IAMChangeHook(ctx, madmin.SRIAMItem{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  8. cni/pkg/nodeagent/net.go

    	// first add all the pods as empty:
    	for uid := range ambientPodUIDs {
    		s.currentPodSnapshot.Ensure(string(uid))
    	}
    
    	// populate full pod snapshot from cgroups
    	return s.scanProcForPodsAndCache(ambientPodUIDs)
    }
    
    func (s *NetServer) scanProcForPodsAndCache(pods map[types.UID]*corev1.Pod) error {
    	// TODO: maybe remove existing uids in s.currentPodSnapshot from the filter set.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  9. cmd/typed-errors.go

    // error returned in IAM subsystem when an account doesn't exist.
    var errNoSuchAccount = errors.New("Specified account does not exist")
    
    // error returned in IAM subsystem when groups doesn't exist.
    var errNoSuchGroup = errors.New("Specified group does not exist")
    
    // error returned in IAM subsystem when a policy attach/detach request has no
    // net effect, i.e. it is already applied.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. cmd/admin-router.go

    		// Get Group
    		adminRouter.Methods(http.MethodGet).Path(adminVersion+"/group").HandlerFunc(adminMiddleware(adminAPI.GetGroup)).Queries("group", "{group:.*}")
    
    		// List Groups
    		adminRouter.Methods(http.MethodGet).Path(adminVersion + "/groups").HandlerFunc(adminMiddleware(adminAPI.ListGroups))
    
    		// Set Group Status
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top