Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 94 for podAdd (0.1 sec)

  1. cni/pkg/nodeagent/podcgroupns_test.go

    		},
    	} {
    		tt := tt
    		t.Run(tt.name, func(t *testing.T) {
    			podUID, containerID, err := getPodUIDAndContainerIDFromCGroups(makeCGroups(tt.cgroupPaths))
    
    			if tt.expectMsg != "" {
    				assert.Equal(t, tt.expectMsg, err.Error())
    				return
    			}
    			assert.Equal(t, tt.expectPodUID, podUID)
    			assert.Equal(t, tt.expectContainerID, containerID)
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. pkg/volume/nfs/nfs_test.go

    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, err := plug.(*nfsPlugin).newMounterInternal(spec, pod, fake)
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	if mounter == nil {
    		t.Errorf("Got a nil Mounter")
    	}
    	volumePath := mounter.GetPath()
    	expectedPath := filepath.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~nfs/vol1")
    	if volumePath != expectedPath {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 9K bytes
    - Viewed (0)
  3. pkg/volume/portworx/portworx_test.go

    	mounter, err := plug.(*portworxVolumePlugin).newMounterInternal(volume.NewSpecFromVolume(spec), types.UID("poduid"), fakeManager, fakeMounter)
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	if mounter == nil {
    		t.Errorf("Got a nil Mounter")
    	}
    
    	volPath := filepath.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~portworx-volume/vol1")
    	path := mounter.GetPath()
    	if path != volPath {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 21 02:17:04 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/unmounter_test.go

    	plugin, rootDir := testPlugin(t)
    	plugin.runner = fakeRunner(
    		assertDriverCall(t, notSupportedOutput(), unmountCmd,
    			rootDir+"/mount-dir"),
    	)
    
    	u, _ := plugin.newUnmounterInternal("volName", types.UID("poduid"), mounter, plugin.runner)
    	u.TearDownAt(rootDir + "/mount-dir")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/fake_kuberuntime_manager.go

    	_, found := f.removed[uid]
    	return found
    }
    
    type fakePodPullingTimeRecorder struct{}
    
    func (f *fakePodPullingTimeRecorder) RecordImageStartedPulling(podUID types.UID) {}
    
    func (f *fakePodPullingTimeRecorder) RecordImageFinishedPulling(podUID types.UID) {}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    // ex. mapPath symlink: pods/{podUid}}/{DefaultKubeletVolumeDevicesDirName}/{escapeQualifiedPluginName}/{volumeName} -> /dev/sdX
    //
    //	globalMapPath/{pod uuid} bind mount: plugins/kubernetes.io/{PluginName}/{DefaultKubeletVolumeDevicesDirName}/{volumePluginDependentPath}/{pod uuid} -> /dev/sdX
    func (v VolumePathHandler) FindGlobalMapPathUUIDFromPod(pluginDir, mapPath string, podUID types.UID) (string, error) {
    	var globalMapPathUUID string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go

    	Name, Namespace, UID string
    	PodName, PodUID      string
    	CredentialID         string
    	NodeName, NodeUID    string
    }
    
    func (sa *ServiceAccountInfo) UserInfo() user.Info {
    	info := &user.DefaultInfo{
    		Name:   MakeUsername(sa.Namespace, sa.Name),
    		UID:    sa.UID,
    		Groups: MakeGroupNames(sa.Namespace),
    	}
    
    	if sa.PodName != "" && sa.PodUID != "" {
    		if info.Extra == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/ingress/interface.go

    	// when in an environment that doesn't support LoadBalancer) for the given port.
    	AddressesForPort(port int) ([]string, []int)
    
    	// PodID returns the name of the ingress gateway pod of index i. Returns error if failed to get the pod
    	// or the index is out of boundary.
    	PodID(i int) (string, error)
    
    	// Cluster the ingress is deployed to
    	Cluster() cluster.Cluster
    
    	// Namespace of the ingress
    	Namespace() string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 17:13:34 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. pkg/kubelet/pleg/evented_test.go

    	for _, podStatus := range podStatuses[:2] {
    		podId := string(podStatus.ID)
    		newPodStatus := kubecontainer.PodStatus{
    			ID: podStatus.ID,
    			SandboxStatuses: []*v1.PodSandboxStatus{
    				{Id: podId},
    			},
    			ContainerStatuses: []*kubecontainer.Status{
    				// update state to container exited
    				{ID: kubecontainer.ContainerID{ID: podId}, State: kubecontainer.ContainerStateExited},
    			},
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 01 07:45:05 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/labels_test.go

    	var tests = []struct {
    		description string
    		expected    *labeledContainerInfo
    	}{
    		{
    			"Regular containers",
    			&labeledContainerInfo{
    				PodName:       pod.Name,
    				PodNamespace:  pod.Namespace,
    				PodUID:        pod.UID,
    				ContainerName: container.Name,
    			},
    		},
    	}
    
    	// Test whether we can get right information from label
    	for _, test := range tests {
    		labels := newContainerLabels(container, pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top