Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 195 for if (0.13 sec)

  1. istioctl/pkg/writer/envoy/configdump/listener.go

    			} else if filter.Name == TCPListener {
    				if !strings.Contains(string(filter.GetTypedConfig().GetValue()), util.BlackHoleCluster) {
    					nTCP++
    				}
    			}
    		}
    	}
    
    	if nHTTP > 0 {
    		if nTCP == 0 {
    			return "HTTP"
    		}
    		return "HTTP+TCP"
    	} else if nTCP > 0 {
    		return "TCP"
    	}
    
    	return "UNKNOWN"
    }
    
    func retrieveListenerAddress(l *listener.Listener) string {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. istioctl/pkg/multixds/gather.go

    ) (map[string]*discovery.DiscoveryResponse, error) {
    	// If Central Istiod case, just call it
    	if ns == "" {
    		ns = istioNamespace
    	}
    	if ns == istioNamespace {
    		serviceAccount = tokenServiceAccount
    	}
    	if centralOpts.Xds != "" {
    		dialOpts, err := xds.DialOptions(centralOpts, ns, serviceAccount, kubeClient)
    		if err != nil {
    			return nil, err
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. istioctl/pkg/checkinject/checkinject.go

    					v, ok := podLabels[me.Key]
    					if !ok {
    						continue
    					}
    					for _, nv := range me.Values {
    						if nv == v {
    							return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false
    						}
    					}
    				}
    			}
    		} else if podMatched {
    			if v, ok := nsLabels[analyzer_util.InjectionLabelName]; ok {
    				if v != "enabled" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *WorkloadFilter) Verify(workload *ZtunnelWorkload) bool {
    	if wf.Address == "" && wf.Node == "" && wf.Namespace == "" {
    		return true
    	}
    
    	if wf.Namespace != "" {
    		if !strings.EqualFold(workload.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	if wf.Address != "" {
    		var find bool
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  5. cni/pkg/plugin/sidecar_redirect.go

    func getAnnotationOrDefault(name string, annotations map[string]string) (isFound bool, val string, err error) {
    	if _, ok := annotationRegistry[name]; !ok {
    		return false, "", fmt.Errorf("no registered annotation with name=%s", name)
    	}
    	// use annotation value if present
    	if val, found := annotations[annotationRegistry[name].key]; found {
    		if err := annotationRegistry[name].validator(val); err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  6. operator/cmd/mesh/profile-dump.go

    	}
    
    	y, _, err := manifest.GenerateConfig(pdArgs.inFilenames, setFlags, true, nil, l)
    	if err != nil {
    		return err
    	}
    	y, err = tpath.GetConfigSubtree(y, "spec")
    	if err != nil {
    		return err
    	}
    
    	if pdArgs.configPath == "" {
    		if y, err = prependHeader(y); err != nil {
    			return err
    		}
    	} else {
    		if y, err = tpath.GetConfigSubtree(y, pdArgs.configPath); err != nil {
    			return err
    		}
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest_shared_test.go

    	// if an apply patch occurs for an object that doesn't yet exist, create it.
    	if patch.Type() != types.ApplyPatchType {
    		return clnt.Patch(ctx, obj, patch, opts...)
    	}
    	check, ok := obj.DeepCopyObject().(client.Object)
    	if !ok {
    		return errors.New("could not check for object in fake client")
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  8. istioctl/pkg/util/handlers/handlers.go

    	builder.ResourceNames("pods", resname)
    	infos, err := builder.Do().Infos()
    	if err != nil {
    		return nil, "", "", "", fmt.Errorf("failed retrieving: %v in the %q namespace", err, ns)
    	}
    	if len(infos) != 1 {
    		return nil, "", "", "", errors.New("expected a resource")
    	}
    	_, ok := infos[0].Object.(*corev1.Pod)
    	if ok {
    		// If we got a pod, just use its name
    		return nil, infos[0].Name, infos[0].Namespace, "", nil
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/clusters/clusters.go

    }
    
    // Verify returns true if the passed host matches the filter fields
    func (e *EndpointFilter) Verify(host *admin.HostStatus, cluster string) bool {
    	if e.Address == "" && e.Port == 0 && e.Cluster == "" && e.Status == "" {
    		return true
    	}
    	if e.Address != "" && !strings.EqualFold(retrieveEndpointAddress(host), e.Address) {
    		return false
    	}
    	if e.Port != 0 && retrieveEndpointPort(host) != e.Port {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net.go

    	log.Debug("pod netns was not found, trying to find it using procfs")
    	// this can happen if the pod was dynamically added to the mesh after it was created.
    	// in that case, try finding the netns using procfs.
    	if err := s.rescanPod(pod); err != nil {
    		log.Errorf("error scanning proc: error was %s", err)
    		return nil, err
    	}
    	// try again. we can still get here if the pod is in the process of being created.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
Back to top