Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetPodName (0.22 sec)

  1. istioctl/pkg/proxyconfig/proxyconfig.go

    			var rootCA1, rootCA2 string
    			if len(args) == 2 {
    				if podName1, podNamespace1, err = getPodName(ctx, args[0]); err != nil {
    					return err
    				}
    				rootCA1, err = extractRootCA(kubeClient, podName1, podNamespace1, c.OutOrStdout())
    				if err != nil {
    					return err
    				}
    
    				if podName2, podNamespace2, err = getPodName(ctx, args[1]); err != nil {
    					return err
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 48K bytes
    - Viewed (0)
  2. tests/integration/pilot/tunneling_test.go

    	}
    	return filesList
    }
    
    func selectPortName(httpVersion string) string {
    	if httpVersion == forwardproxy.HTTP1 {
    		return "http-connect"
    	}
    	return "http2-connect"
    }
    
    func getPodName(ctx framework.TestContext, ns, appSelector string) string {
    	return getPodStringProperty(ctx, ns, appSelector, func(pod corev1.Pod) string {
    		return pod.Name
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_utils.go

    func podInOrdinalRange(pod *v1.Pod, set *apps.StatefulSet) bool {
    	ordinal := getOrdinal(pod)
    	return ordinal >= getStartOrdinal(set) && ordinal <= getEndOrdinal(set)
    }
    
    // getPodName gets the name of set's child Pod with an ordinal index of ordinal
    func getPodName(set *apps.StatefulSet, ordinal int) string {
    	return fmt.Sprintf("%s-%d", set.Name, ordinal)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. pkg/kubelet/server/server_test.go

    		fw.fakeAuth,
    		kubeCfg,
    	)
    	fw.serverUnderTest = &server
    	fw.testHTTPServer = httptest.NewServer(fw.serverUnderTest)
    	return fw
    }
    
    // A helper function to return the correct pod name.
    func getPodName(name, namespace string) string {
    	if namespace == "" {
    		namespace = metav1.NamespaceDefault
    	}
    	return name + "_" + namespace
    }
    
    func TestServeLogs(t *testing.T) {
    	fw := newServerTest()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/cadvisor_stats_provider.go

    	}
    	return imageFsInfo.Device, nil
    }
    
    // buildPodRef returns a PodReference that identifies the Pod managing cinfo
    func buildPodRef(containerLabels map[string]string) statsapi.PodReference {
    	podName := kubetypes.GetPodName(containerLabels)
    	podNamespace := kubetypes.GetPodNamespace(containerLabels)
    	podUID := kubetypes.GetPodUID(containerLabels)
    	return statsapi.PodReference{Name: podName, Namespace: podNamespace, UID: podUID}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumebinding/binder.go

    		b, err := b.checkBindings(logger, assumedPod, bindings, claimsToProvision)
    		return b, err
    	})
    	if err != nil {
    		return fmt.Errorf("binding volumes: %w", err)
    	}
    	return nil
    }
    
    func getPodName(pod *v1.Pod) string {
    	return pod.Namespace + "/" + pod.Name
    }
    
    func getPVCName(pvc *v1.PersistentVolumeClaim) string {
    	return pvc.Namespace + "/" + pvc.Name
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top