Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DISABLE_ENVOY (0.22 sec)

  1. cni/pkg/plugin/plugin.go

    		log.Infof("excluded due to being already injected with istio-init container")
    		return nil
    	}
    
    	if val, ok := pi.ProxyEnvironments["DISABLE_ENVOY"]; ok {
    		if val, err := strconv.ParseBool(val); err == nil && val {
    			log.Infof("excluded due to DISABLE_ENVOY on istio-proxy", podNamespace, podName)
    			return nil
    		}
    	}
    
    	if !pi.Containers.Contains(ISTIOPROXY) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_test.go

    	pod, ns := buildFakePodAndNSForClient()
    	pod.ObjectMeta.Annotations[sidecarStatusKey] = "true"
    	pod.Spec.Containers = append(pod.Spec.Containers, corev1.Container{
    		Name: "istio-init",
    		Env:  []corev1.EnvVar{{Name: "DISABLE_ENVOY", Value: "true"}},
    	})
    
    	mockIntercept := testDoAddRun(t, buildMockConf(true, ""), testNSName, pod, ns)
    
    	if len(mockIntercept.lastRedirect) != 0 {
    		t.Fatalf("failed to exclude pod")
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top