Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for KubeTypes (0.21 sec)

  1. pkg/kubelet/pod/pod_manager.go

    	mirrorToPod map[kubetypes.MirrorPodUID]kubetypes.ResolvedPodUID) {
    	pm.lock.RLock()
    	defer pm.lock.RUnlock()
    
    	podToMirror = make(map[kubetypes.ResolvedPodUID]kubetypes.MirrorPodUID, len(pm.translationByUID))
    	mirrorToPod = make(map[kubetypes.MirrorPodUID]kubetypes.ResolvedPodUID, len(pm.translationByUID))
    	// Insert empty translation mapping for all static pods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. pkg/kubelet/config/apiserver_test.go

    	if !ok {
    		t.Errorf("Unable to read from channel when expected")
    	}
    	update = got.(kubetypes.PodUpdate)
    	// Could be sorted either of these two ways:
    	expectedA := CreatePodUpdate(kubetypes.SET, kubetypes.ApiserverSource, pod1v1, pod2)
    	expectedB := CreatePodUpdate(kubetypes.SET, kubetypes.ApiserverSource, pod2, pod1v1)
    
    	if !apiequality.Semantic.DeepEqual(expectedA, update) && !apiequality.Semantic.DeepEqual(expectedB, update) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 18:31:03 UTC 2017
    - 5.6K bytes
    - Viewed (0)
  3. pkg/kubelet/config/config_test.go

    				},
    			},
    		},
    	}
    }
    
    func CreatePodUpdate(op kubetypes.PodOperation, source string, pods ...*v1.Pod) kubetypes.PodUpdate {
    	return kubetypes.PodUpdate{Pods: pods, Op: op, Source: source}
    }
    
    func createPodConfigTester(ctx context.Context, mode PodConfigNotificationMode) (chan<- interface{}, <-chan kubetypes.PodUpdate, *PodConfig) {
    	eventBroadcaster := record.NewBroadcaster(record.WithContext(ctx))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. pkg/kubelet/config/config.go

    	}
    
    	s.pods[source] = pods
    
    	adds = &kubetypes.PodUpdate{Op: kubetypes.ADD, Pods: copyPods(addPods), Source: source}
    	updates = &kubetypes.PodUpdate{Op: kubetypes.UPDATE, Pods: copyPods(updatePods), Source: source}
    	deletes = &kubetypes.PodUpdate{Op: kubetypes.DELETE, Pods: copyPods(deletePods), Source: source}
    	removes = &kubetypes.PodUpdate{Op: kubetypes.REMOVE, Pods: copyPods(removePods), Source: source}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    // Swagger as a documentation source for structs and theirs fields
    func WriteSwaggerDocFunc(kubeTypes []KubeTypes, w io.Writer) error {
    	for _, kubeType := range kubeTypes {
    		structName := kubeType[0].Name
    		kubeType[0].Name = ""
    
    		// Ignore empty documentation
    		docfulTypes := make(KubeTypes, 0, len(kubeType))
    		for _, pair := range kubeType {
    			if pair.Doc != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
  6. pkg/kube/kclient/client_test.go

    		ObjectFilter: discoveryNamespacesFilter,
    	})
    	wt := clienttest.NewWriter[*istioclient.WasmPlugin](t, c)
    	crd.AddEventHandler(clienttest.TrackerHandler(tracker))
    
    	// Ready later
    	vscrd := kclient.NewDelayedInformer[controllers.Object](c, gvr.VirtualService, kubetypes.StandardInformer, kubetypes.Filter{
    		ObjectFilter: discoveryNamespacesFilter,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. pkg/kubelet/config/apiserver.go

    	send := func(objs []interface{}) {
    		var pods []*v1.Pod
    		for _, o := range objs {
    			pods = append(pods, o.(*v1.Pod))
    		}
    		updates <- kubetypes.PodUpdate{Pods: pods, Op: kubetypes.SET, Source: kubetypes.ApiserverSource}
    	}
    	r := cache.NewReflector(lw, &v1.Pod{}, cache.NewUndeltaStore(send, cache.MetaNamespaceKeyFunc), 0)
    	go r.Run(wait.NeverStop)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 19:46:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  8. pkg/kubelet/config/file_test.go

    	err = lw.listConfig()
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	update, ok := (<-ch).(kubetypes.PodUpdate)
    	if !ok {
    		t.Fatalf("unexpected type: %#v", update)
    	}
    	expected := CreatePodUpdate(kubetypes.SET, kubetypes.FileSource)
    	if !apiequality.Semantic.DeepEqual(expected, update) {
    		t.Fatalf("expected %#v, got %#v", expected, update)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/validation/validation.go

    		switch kc.MemorySwap.SwapBehavior {
    		case "":
    		case kubetypes.NoSwap:
    		case kubetypes.LimitedSwap:
    		default:
    			allErrors = append(allErrors, fmt.Errorf("invalid configuration: memorySwap.swapBehavior %q must be one of: \"\", %q or %q", kc.MemorySwap.SwapBehavior, kubetypes.LimitedSwap, kubetypes.NoSwap))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. pkg/kubelet/config/http.go

    		return fmt.Errorf("%v: %v", s.url, resp.Status)
    	}
    	if len(data) == 0 {
    		// Emit an update with an empty PodList to allow HTTPSource to be marked as seen
    		s.updates <- kubetypes.PodUpdate{Pods: []*v1.Pod{}, Op: kubetypes.SET, Source: kubetypes.HTTPSource}
    		return fmt.Errorf("zero-length data received from %v", s.url)
    	}
    	// Short circuit if the data has not changed since the last time it was read.
    	if bytes.Equal(data, s.data) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 07:19:44 UTC 2021
    - 4.1K bytes
    - Viewed (0)
Back to top