- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for podAllocated (0.12 sec)
-
pkg/kubelet/userns/userns_manager_switch_test.go
m2, err := MakeUserNsManager(testUserNsPodsManager) require.NoError(t, err) // The feature gate is off, no pods should be allocated. for _, pod := range pods { ok := m2.podAllocated(pod) assert.False(t, ok, "pod %q should not be allocated", pod) } } func TestGetOrCreateUserNamespaceMappingsSwitch(t *testing.T) { // Enable the feature gate to create some pods on disk.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_test.go
require.NoError(t, err) for _, pod := range tc.podSetAfterCleanup { ok := m.podAllocated(pod) assert.True(t, ok, "pod %q should be allocated", pod) } for _, pod := range tc.podUnsetAfterCleanup { ok := m.podAllocated(pod) assert.False(t, ok, "pod %q should not be allocated", pod) } }) } } type failingUserNsPodsManager struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 14.6K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager.go
return } m.lock.Lock() defer m.lock.Unlock() m.releaseWithLock(podUID) } // podAllocated returns true if the pod is allocated, false otherwise. func (m *UsernsManager) podAllocated(podUID types.UID) bool { if !utilfeature.DefaultFeatureGate.Enabled(features.UserNamespacesSupport) { return false } m.lock.Lock() defer m.lock.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.3K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/memory_manager_test.go
for i, initContainer := range testCase.podAllocate.Spec.InitContainers { mgr.AddContainer(testCase.podAllocate, &testCase.podAllocate.Spec.InitContainers[i], initContainer.Name) } // Calls AddContainer for apps containers for i, appContainer := range testCase.podAllocate.Spec.Containers { mgr.AddContainer(testCase.podAllocate, &testCase.podAllocate.Spec.Containers[i], appContainer.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 13:01:40 UTC 2023 - 70.2K bytes - Viewed (0)