Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for dynamic_resources (0.24 sec)

  1. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters.go

    limitations under the License.
    */
    
    package dynamicresources
    
    import (
    	"context"
    	"fmt"
    	"sync"
    
    	v1 "k8s.io/api/core/v1"
    	resourcev1alpha2 "k8s.io/api/resource/v1alpha2"
    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/klog/v2"
    	namedresourcesmodel "k8s.io/kubernetes/pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 09:03:22 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/podresources/testing/provider_mock.go

    }
    
    // GetDynamicResources mocks base method.
    func (m *MockDynamicResourcesProvider) GetDynamicResources(pod *v1.Pod, container *v1.Container) []*v10.DynamicResource {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "GetDynamicResources", pod, container)
    	ret0, _ := ret[0].([]*v10.DynamicResource)
    	return ret0
    }
    
    // GetDynamicResources indicates an expected call of GetDynamicResources.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/container_manager_stub.go

    func (cm *containerManagerStub) GetAllocatableMemory() []*podresourcesapi.ContainerMemory {
    	return nil
    }
    
    func (cm *containerManagerStub) GetDynamicResources(pod *v1.Pod, container *v1.Container) []*podresourcesapi.DynamicResource {
    	return nil
    }
    
    func (cm *containerManagerStub) GetNodeAllocatableAbsolute() v1.ResourceList {
    	return nil
    }
    
    func (cm *containerManagerStub) PrepareDynamicResources(pod *v1.Pod) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 02:26:59 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/v1/default_plugins.go

    				extended := make([]v1.Plugin, 0, len(config.MultiPoint.Enabled)+1)
    				extended = append(extended, config.MultiPoint.Enabled[:i]...)
    				extended = append(extended, v1.Plugin{Name: names.DynamicResources})
    				extended = append(extended, config.MultiPoint.Enabled[i:]...)
    				config.MultiPoint.Enabled = extended
    				break
    			}
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/container_manager_linux.go

    }
    
    func (cm *containerManagerImpl) GetDynamicResources(pod *v1.Pod, container *v1.Container) []*podresourcesapi.DynamicResource {
    	if !utilfeature.DefaultFeatureGate.Enabled(kubefeatures.DynamicResourceAllocation) {
    		return []*podresourcesapi.DynamicResource{}
    	}
    
    	var containerDynamicResources []*podresourcesapi.DynamicResource
    	containerClaimInfos, err := cm.draManager.GetContainerClaimInfos(pod, container)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/fake_container_manager.go

    	cm.Lock()
    	defer cm.Unlock()
    	return nil
    }
    
    func (cm *FakeContainerManager) GetDynamicResources(pod *v1.Pod, container *v1.Container) []*podresourcesapi.DynamicResource {
    	return nil
    }
    
    func (cm *FakeContainerManager) GetNodeAllocatableAbsolute() v1.ResourceList {
    	cm.Lock()
    	defer cm.Unlock()
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 17:33:04 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/container_manager_windows.go

    }
    
    func (cm *containerManagerImpl) GetNodeAllocatableAbsolute() v1.ResourceList {
    	return nil
    }
    
    func (cm *containerManagerImpl) GetDynamicResources(pod *v1.Pod, container *v1.Container) []*podresourcesapi.DynamicResource {
    	return nil
    }
    
    func (cm *containerManagerImpl) PrepareDynamicResources(pod *v1.Pod) error {
    	return nil
    }
    
    func (cm *containerManagerImpl) UnprepareDynamicResources(*v1.Pod) error {
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 11:25:36 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package dynamicresources
    
    import (
    	"errors"
    	"sync"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    
    	v1 "k8s.io/api/core/v1"
    	resourceapi "k8s.io/api/resource/v1alpha2"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/v1/default_plugins_test.go

    						{Name: names.VolumeBinding},
    						{Name: names.VolumeZone},
    						{Name: names.PodTopologySpread, Weight: ptr.To[int32](2)},
    						{Name: names.InterPodAffinity, Weight: ptr.To[int32](2)},
    						{Name: names.DynamicResources},
    						{Name: names.DefaultPreemption},
    						{Name: names.NodeResourcesBalancedAllocation, Weight: ptr.To[int32](1)},
    						{Name: names.ImageLocality, Weight: ptr.To[int32](1)},
    						{Name: names.DefaultBinder},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package dynamicresources
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"sort"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/stretchr/testify/assert"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
Back to top