k8sclient

package
v0.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockK8sClient

type MockK8sClient struct {
	NumOfNodes int
	NumOfCores int
}

MockK8sClient implements K8sClientInterface

func (*MockK8sClient) GetClusterSize

func (k *MockK8sClient) GetClusterSize() (*k8sclient.ClusterSize, error)

GetClusterSize mocks counting schedulable nodes and cores in the cluster

func (*MockK8sClient) UpdateResources

func (k *MockK8sClient) UpdateResources(resources map[string]apiv1.ResourceRequirements) error

UpdateResources mocks updating resources needs for containers in the target

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL