Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,767 for cmfake (0.17 sec)

  1. pkg/controller/podautoscaler/metrics/client_test.go

    	emapi "k8s.io/metrics/pkg/apis/external_metrics/v1beta1"
    	metricsapi "k8s.io/metrics/pkg/apis/metrics/v1beta1"
    	metricsfake "k8s.io/metrics/pkg/client/clientset/versioned/fake"
    	cmfake "k8s.io/metrics/pkg/client/custom_metrics/fake"
    	emfake "k8s.io/metrics/pkg/client/external_metrics/fake"
    
    	"github.com/stretchr/testify/assert"
    )
    
    var fixedTimestamp = time.Date(2015, time.November, 10, 12, 30, 0, 0, time.UTC)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 02:34:54 UTC 2021
    - 16.4K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/replica_calculator_test.go

    	emapi "k8s.io/metrics/pkg/apis/external_metrics/v1beta1"
    	metricsapi "k8s.io/metrics/pkg/apis/metrics/v1beta1"
    	metricsfake "k8s.io/metrics/pkg/client/clientset/versioned/fake"
    	cmfake "k8s.io/metrics/pkg/client/custom_metrics/fake"
    	emfake "k8s.io/metrics/pkg/client/external_metrics/fake"
    
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    )
    
    type resourceInfo struct {
    	name     v1.ResourceName
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/horizontal_test.go

    	emapi "k8s.io/metrics/pkg/apis/external_metrics/v1beta1"
    	metricsapi "k8s.io/metrics/pkg/apis/metrics/v1beta1"
    	metricsfake "k8s.io/metrics/pkg/client/clientset/versioned/fake"
    	cmfake "k8s.io/metrics/pkg/client/custom_metrics/fake"
    	emfake "k8s.io/metrics/pkg/client/external_metrics/fake"
    	"k8s.io/utils/pointer"
    
    	"github.com/stretchr/testify/assert"
    
    	_ "k8s.io/kubernetes/pkg/apis/apps/install"
    	_ "k8s.io/kubernetes/pkg/apis/autoscaling/install"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/util/testing/fake.go

    	return a[i].String() < a[j].String()
    }
    func (a byAddress) Swap(i, j int) {
    	a[i], a[j] = a[j], a[i]
    }
    
    // NewFake creates a fake ipvs implementation - a cache store.
    func NewFake() *FakeIPVS {
    	return &FakeIPVS{
    		Services:     make(map[ServiceKey]*utilipvs.VirtualServer),
    		Destinations: make(map[ServiceKey][]*utilipvs.RealServer),
    	}
    }
    
    func toServiceKey(serv *utilipvs.VirtualServer) ServiceKey {
    	return ServiceKey{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7K bytes
    - Viewed (0)
  5. pkg/proxy/conntrack/fake.go

    func NewFake() *FakeInterface {
    	fake := &FakeInterface{}
    	fake.Reset()
    	return fake
    }
    
    // Reset clears fake's sets/maps
    func (fake *FakeInterface) Reset() {
    	fake.ClearedIPs = sets.New[string]()
    	fake.ClearedPorts = sets.New[int]()
    	fake.ClearedNATs = make(map[string]string)
    	fake.ClearedPortNATs = make(map[int]string)
    }
    
    // ClearEntriesForIP is part of Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 04:15:49 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    func (fec *Fake) Sleep(duration time.Duration) {
    	doneCh := make(chan struct{})
    	fec.EventAfterDuration(func(time.Time) {
    		fec.clientWG.Add(1)
    		close(doneCh)
    	}, duration)
    	fec.clientWG.Add(-1)
    	<-doneCh
    }
    
    // EventAfterDuration schedules the given function to be invoked once
    // the given duration has passed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/ipset/testing/fake.go

    	Entries map[string]sets.String
    }
    
    // NewFake create a new fake ipset interface - it initialize the FakeIPSet.
    func NewFake(version string) *FakeIPSet {
    	return &FakeIPSet{
    		Version: version,
    		Sets:    make(map[string]*ipset.IPSet),
    		Entries: make(map[string]sets.String),
    	}
    }
    
    // GetVersion is part of interface.
    func (f *FakeIPSet) GetVersion() (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/testing/fake.go

    	IsIPv6 bool
    }
    
    // NewFakeNetlinkHandle will create a new FakeNetlinkHandle
    func NewFakeNetlinkHandle(isIPv6 bool) *FakeNetlinkHandle {
    	fake := &FakeNetlinkHandle{
    		localAddresses: make(map[string][]string),
    		IsIPv6:         isIPv6,
    	}
    	return fake
    }
    
    // EnsureAddressBind is a mock implementation
    func (h *FakeNetlinkHandle) EnsureAddressBind(address, devName string) (exist bool, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. pkg/proxy/util/testing/fake.go

    	Address map[string][]net.Addr
    }
    
    // NewFakeNetwork initializes a FakeNetwork.
    func NewFakeNetwork() *FakeNetwork {
    	return &FakeNetwork{
    		NetworkInterfaces: make([]net.Interface, 0),
    		Address:           make(map[string][]net.Addr),
    	}
    }
    
    // AddInterfaceAddr create an interface and its associated addresses for FakeNetwork implementation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 08:08:19 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  10. pkg/test/framework/components/environment/kube/fake.go

    	return false
    }
    
    func (f FakeEnvironment) EnvironmentName() string {
    	if len(f.Name) == 0 {
    		return "fake"
    	}
    	return f.Name
    }
    
    func (f FakeEnvironment) AllClusters() cluster.Clusters {
    	res := cluster.Clusters{}
    	allClusters := make(cluster.Map)
    
    	for i := 0; i < f.NumClusters; i++ {
    		topo := cluster.NewTopology(cluster.Config{
    			Name:               fmt.Sprintf("cluster-%d", i),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top