Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 75 for pod (0.12 sec)

  1. istioctl/pkg/cli/mock_client.go

    	if !ok {
    		return nil, fmt.Errorf("unable to retrieve Pod: pods %q not found", podName)
    	}
    	return results, nil
    }
    
    func (c MockClient) EnvoyDoWithPort(ctx context.Context, podName, podNamespace, method, path string, port int) ([]byte, error) {
    	results, ok := c.Results[podName]
    	if !ok {
    		return nil, fmt.Errorf("unable to retrieve Pod: pods %q not found", podName)
    	}
    	return results, nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/options.go

    	"net/netip"
    
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/env"
    )
    
    var (
    	PodNamespace      = env.RegisterStringVar("SYSTEM_NAMESPACE", constants.IstioSystemNamespace, "pod's namespace").Get()
    	PodName           = env.RegisterStringVar("POD_NAME", "", "").Get()
    	NodeName          = env.RegisterStringVar("NODE_NAME", "", "").Get()
    	Revision          = env.RegisterStringVar("REVISION", "", "").Get()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    // PrintVersionSummary prints version information for Istio and Ztunnel from the config dump
    func (c *ConfigWriter) PrintVersionSummary() error {
    	// TODO
    	return nil
    }
    
    // PrintPodRootCAFromDynamicSecretDump prints just pod's root ca from dynamic secret config dump to the ConfigWriter stdout
    func (c *ConfigWriter) PrintPodRootCAFromDynamicSecretDump() (string, error) {
    	// TODO
    	return "", nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/fakes_test.go

    }
    
    func (f *fakeZtunnel) PodDeleted(ctx context.Context, uid string) error {
    	f.deletedPods.Add(1)
    	return nil
    }
    
    func (f *fakeZtunnel) PodAdded(ctx context.Context, pod *corev1.Pod, netns Netns) error {
    	f.addedPods.Add(1)
    	return f.addError
    }
    
    func (f *fakeZtunnel) Close() error {
    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. istioctl/pkg/proxystatus/proxystatus.go

    				if err != nil {
    					return err
    				}
    				if ambient.IsZtunnelPod(kubeClient, podName, ns) {
    					_, _ = fmt.Fprintf(c.OutOrStdout(),
    						"Sync diff is not available for ztunnel pod %s.%s\n", podName, ns)
    					return nil
    				}
    				var envoyDump []byte
    				if configDumpFile != "" {
    					envoyDump, err = readConfigFile(configDumpFile)
    				} else {
    					path := "config_dump"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. cni/pkg/install/kubeconfig.go

    	if len(cfg.K8sServiceHost) == 0 {
    		return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_HOST not set. Is this not running within a pod?")
    	}
    
    	if len(cfg.K8sServicePort) == 0 {
    		return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_PORT not set. Is this not running within a pod?")
    	}
    
    	protocol := model.GetOrDefault(cfg.K8sServiceProtocol, "https")
    	cluster := &api.Cluster{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Aug 11 01:19:03 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-generate_test.go

    			return "", true
    		}
    		if ls.pod.Get("sidecar.istio.io/inject") == "false" {
    			return "", true
    		}
    		return "", false
    	}
    
    	// We test the cross product namespace and pod labels:
    	// 1. revision label (istio.io/rev)
    	// 2. inject label true (istio-injection on namespace, sidecar.istio.io/inject on pod)
    	// 3. inject label false
    	// 4. inject label true and revision label
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  8. cmd/update.go

    	internalLogIf(GlobalContext, err)
    
    	return err == nil
    }
    
    // MinIO Helm chart uses DownwardAPIFile to write pod label info to /podinfo/labels
    // More info: https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#store-pod-fields
    // Check if this is Helm package installation and report helm chart version
    func getHelmVersion(helmInfoFilePath string) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/informers.go

    func (s *InformerHandlers) GetAmbientPods() []*corev1.Pod {
    	var pods []*corev1.Pod
    	for _, pod := range s.pods.List(metav1.NamespaceAll, klabels.Everything()) {
    		ns := s.namespaces.Get(pod.Namespace, "")
    		if ns == nil {
    			log.Warnf("failed to find namespace %s for pod %s", pod.Namespace, pod.Name)
    		}
    
    		if !util.IsZtunnelPod(s.systemNamespace, pod) && util.PodRedirectionEnabled(ns, pod) {
    			pods = append(pods, pod)
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. cni/pkg/util/podutil_test.go

    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "derp",
    		},
    		Status: corev1.PodStatus{
    			PodIP:  "2.2.2.2",
    			PodIPs: []corev1.PodIP{{IP: "2.2.2.2"}, {IP: "3.3.3.3"}},
    		},
    	}
    
    	podIPs := GetPodIPsIfPresent(pod)
    	assert.Equal(t, len(podIPs), 2)
    }
    
    func TestGetPodIPsIfNoPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 4.9K bytes
    - Viewed (0)
Back to top