Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 294 for cmfake (0.2 sec)

  1. 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)
  2. plugin/pkg/admission/resourcequota/admission_test.go

    		config := testCase.config
    		resourceQuota := testCase.quota
    		kubeClient := fake.NewSimpleClientset(resourceQuota)
    		if testCase.anotherQuota != nil {
    			kubeClient = fake.NewSimpleClientset(resourceQuota, testCase.anotherQuota)
    		}
    		indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{"namespace": cache.MetaNamespaceIndexFunc})
    		stopCh := make(chan struct{})
    		defer close(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  3. pkg/controller/replicaset/replica_set_test.go

    	}
    }
    
    func TestUpdatePods(t *testing.T) {
    	logger, ctx := ktesting.NewTestContext(t)
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    	manager, informers := testNewReplicaSetControllerFromClient(t, fake.NewSimpleClientset(), stopCh, BurstReplicas)
    
    	received := make(chan string)
    
    	manager.syncHandler = func(ctx context.Context, key string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func createTestClient(attachedVolumes ...v1.AttachedVolume) *fake.Clientset {
    	fakeClient := &fake.Clientset{}
    	if len(attachedVolumes) == 0 {
    		attachedVolumes = append(attachedVolumes, v1.AttachedVolume{
    			Name:       "fake-plugin/fake-device1",
    			DevicePath: "fake/path",
    		})
    	}
    	fakeClient.AddReactor("get", "nodes",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  5. pkg/controller/history/controller_history_test.go

    		revisions []*apps.ControllerRevision
    		want      map[string]bool
    	}
    	testFn := func(test *testcase, t *testing.T) {
    		client := fake.NewSimpleClientset()
    		informerFactory := informers.NewSharedInformerFactory(client, controller.NoResyncPeriodFunc())
    
    		stop := make(chan struct{})
    		defer close(stop)
    		informerFactory.Start(stop)
    		informer := informerFactory.Apps().V1().ControllerRevisions()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    		attachedVolumes:        make(map[v1.UniqueVolumeName]attachedVolume),
    		nodesToUpdateStatusFor: make(map[types.NodeName]nodeToUpdateStatusFor),
    		volumePluginMgr:        volumePluginMgr,
    	}
    	nodeName := types.NodeName("node-1")
    	nodeToUpdate := nodeToUpdateStatusFor{
    		nodeName:                  nodeName,
    		statusUpdateNeeded:        true,
    		volumesToReportAsAttached: make(map[v1.UniqueVolumeName]v1.UniqueVolumeName),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
  7. src/net/dnsclient_unix_test.go

    	// around after this test is done if we don't call dnsWaitGroup.Wait.
    	ctx, cancel := context.WithTimeout(context.Background(), 2*time.Microsecond)
    	defer cancel()
    	_, err := r.LookupIPAddr(ctx, "where.are.they.now")
    	if err == nil {
    		t.Fatal("fake DNS lookup unexpectedly succeeded")
    	}
    }
    
    func lookupWithFake(fake fakeDNSServer, name string, typ dnsmessage.Type) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    		stopCh := make(chan struct{})
    		controller, controllerCompletedCh := startAPFController(t, stopCh, apfConfiguration, serverConcurrency, plName, plConcurrency)
    
    		headerMatcher := headerMatcher{}
    		rquestTimesOutPath := "/request/time-out-as-designed"
    		reqHandlerCompletedCh, callerRoundTripDoneCh := make(chan struct{}), make(chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  9. pkg/controller/disruption/disruption_test.go

    	"k8s.io/apimachinery/pkg/util/intstr"
    	"k8s.io/apimachinery/pkg/util/uuid"
    	"k8s.io/apimachinery/pkg/util/wait"
    	discoveryfake "k8s.io/client-go/discovery/fake"
    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes/fake"
    	scalefake "k8s.io/client-go/scale/fake"
    	core "k8s.io/client-go/testing"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/client-go/tools/record"
    	"k8s.io/client-go/util/workqueue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    		return err
    	}
    	if f.annotations == nil {
    		f.annotations = make(map[string]string)
    	}
    	f.annotations[k] = v
    	return nil
    }
    
    // GetAnnotations reads annotations from FakeAttributes
    func (f *FakeAttributes) GetAnnotations(_ auditinternal.Level) map[string]string {
    	f.mutex.Lock()
    	defer f.mutex.Unlock()
    	annotations := make(map[string]string, len(f.annotations))
    	for k, v := range f.annotations {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top