- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for removeEntries (0.16 sec)
-
cmd/kubeadm/app/util/users/users_linux.go
klog.V(klogLevel).Infof("Removing groups: %s", entriesToString(groupsToCreateSpec)) // Delete users / groups. fileUsers, _ = removeEntries(fileUsers, usersToCreateSpec) fileGroups, _ = removeEntries(fileGroups, groupsToCreateSpec) klog.V(klogLevel).Infof("Writing %q and %q", pathUsers, pathGroups) // Write the files. if err := writeFile(fUsers, fileUsers); err != nil {
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
{name: "bar"}, }, expectedRemoved: 1, expectedOutput: "foo:x:102:foo\n", }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { got, removed := removeEntries(tc.file, tc.entries) if tc.expectedRemoved != removed { t.Fatalf("expected entries to be removed: %v, got: %v", tc.expectedRemoved, removed) } if tc.expectedOutput != got {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 16.3K bytes - Viewed (0)