- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for assignUserAndGroupIDs (0.63 sec)
-
cmd/kubeadm/app/util/users/users_linux.go
} return strings.Join(newLines, "\n"), removed } // assignUserAndGroupIDs takes the list of existing groups, the users and groups to be created, // 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 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 16:35:10 UTC 2023 - 20.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/users/users_linux_test.go
}, expectedGroups: []*entry{ {name: "baz", id: 112}, }, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { err := assignUserAndGroupIDs(tc.groups, tc.usersToCreate, tc.groupsToCreate, tc.uids, tc.gids) if err != nil != tc.expectedError { t.Fatalf("expected error: %v, got: %v, error: %v", tc.expectedError, err != nil, err) } if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 16.3K bytes - Viewed (0)