Skip to content

Commit

Permalink
pkg/kubelet/userns: Remove outdated test
Browse files Browse the repository at this point in the history
When we were alocating the whole UID space, the first range was reserved
to the host. Now we don't allocate the whole UID space, but just the
range configured, so the first range doesn't point to [0;65535] anymore,
so no need to test it is always set.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
  • Loading branch information
rata authored and giuseppe committed Mar 2, 2024
1 parent 4c81e5c commit 4180284
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/kubelet/userns/userns_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ func TestUserNsManagerAllocate(t *testing.T) {
m, err := MakeUserNsManager(testUserNsPodsManager)
require.NoError(t, err)

assert.Equal(t, true, m.isSet(0*65536), "m.isSet(0) should be true")

allocated, length, err := m.allocateOne("one")
assert.NoError(t, err)
assert.Equal(t, userNsLength, int(length), "m.isSet(%d).length=%v", allocated, length)
Expand Down

0 comments on commit 4180284

Please sign in to comment.