Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for break (0.22 sec)

  1. istioctl/pkg/writer/compare/comparator.go

    	c := &Comparator{}
    	for _, resp := range istiodResponses {
    		istiodDump := &configdump.Wrapper{}
    		err := json.Unmarshal(resp, istiodDump)
    		if err != nil {
    			continue
    		}
    		c.istiod = istiodDump
    		break
    	}
    	if c.istiod == nil {
    		return nil, fmt.Errorf("unable to find config dump in Istiod responses")
    	}
    	envoyDump := &configdump.Wrapper{}
    	err := json.Unmarshal(envoyResponse, envoyDump)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  2. istioctl/pkg/multixds/gather.go

    		if err != nil {
    			return nil, fmt.Errorf("could not get XDS from discovery pod %q: %v", pod.Name, err)
    		}
    		responses = append(responses, response)
    		if !all && len(responses) > 0 {
    			break
    		}
    	}
    	return responses, nil
    }
    
    // queryDebugSynczViaAgents sends a debug/syncz xDS request via Istio Agents.
    // By this way, even if istioctl cannot access a specific `istiod` instance directly,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/workload.go

    			return false
    		}
    	}
    
    	if wf.Address != "" {
    		var find bool
    		for _, ip := range workload.WorkloadIPs {
    			if strings.EqualFold(ip, wf.Address) {
    				find = true
    				break
    			}
    		}
    		if !find {
    			return false
    		}
    	}
    	if wf.Node != "" && !strings.EqualFold(workload.Node, wf.Node) {
    		return false
    	}
    	return true
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. bin/retry.sh

          # we cannot display
          set -o pipefail; "$@" 2>&1 | tee "${tmpFile}"
        fi
        # shellcheck disable=SC2181
        if [[ $? == 0 ]]; then
          break
        fi
        if ! grep -Eq "${failureRegex}" "${tmpFile}"; then
          fail "Unexpected failure"
        fi
        if [[ $n -lt $max ]]; then
          ((n++))
          echo "Command failed. Attempt $n/$max:"
        else
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jun 11 16:08:08 GMT 2021
    - 2K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/clusters/clusters.go

    	for _, cluster := range c.clusters.ClusterStatuses {
    		for _, host := range cluster.HostStatuses {
    			if filter.Verify(host, cluster.Name) {
    				filteredClusters = append(filteredClusters, cluster)
    				break
    			}
    		}
    	}
    	out, err := json.MarshalIndent(filteredClusters, "", "    ")
    	if err != nil {
    		return err
    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  6. cni/pkg/repair/netns.go

    //
    // Instead, we traverse the procfs. Comments on this method are inline.
    func getPodNetNs(pod *corev1.Pod) (string, error) {
    	// First, find the network namespace id by looking the interface with the given Pod IP.
    	// This could break on some platforms if they do not have an interface-per-pod.
    	wantID, err := findNetworkIDByIP(pod.Status.PodIP)
    	if err != nil {
    		return "", fmt.Errorf("network id: %v", err)
    	}
    	fs, err := procfs.NewFS("/host/proc")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  7. manifests/charts/istio-control/istio-discovery/templates/clusterrole.yaml

      - apiGroups: ["admissionregistration.k8s.io"]
        resources: ["validatingwebhookconfigurations"]
        verbs: ["get", "list", "watch", "update"]
    
      # istio configuration
      # removing CRD permissions can break older versions of Istio running alongside this control plane (https://github.com/istio/istio/issues/29382)
      # please proceed with caution
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Nov 09 01:32:06 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  8. common/scripts/setup_env.sh

        add_KUBECONFIG_if_exists "$rematch"
        remainder="${BASH_REMATCH[2]}"
        if [[ ! "$remainder" =~ ([^:]*):(.*) ]]; then
          if [[ -n "$remainder" ]]; then
            add_KUBECONFIG_if_exists "$remainder"
            break
          fi
        fi
      done
    else
      add_KUBECONFIG_if_exists "$1"
    fi
    }
    
    KUBECONFIG=${KUBECONFIG:="$HOME/.kube/config"}
    parse_KUBECONFIG "${KUBECONFIG}"
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 19:52:28 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/podcgroupns.go

    	netnsObserved := sets.New[uint64]()
    
    	entries, err := fs.ReadDir(p.proc, ".")
    	if err != nil {
    		return nil, err
    	}
    
    	desiredUIDs := sets.New(maps.Keys(pods)...)
    	for _, entry := range entries {
    		// we can't break here because we need to close all the netns we opened
    		// plus we want to return whatever we can to the user.
    		res, err := p.processEntry(p.proc, netnsObserved, desiredUIDs, entry)
    		if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/generate.go

    				injectionURL = *w.ClientConfig.URL
    			}
    			if w.ClientConfig.Service != nil {
    				if w.ClientConfig.Service.Path != nil {
    					path = *w.ClientConfig.Service.Path
    				}
    			}
    			break
    		}
    	}
    	if !found {
    		return nil, fmt.Errorf("could not find sidecar-injector webhook in canonical webhook %q", wh.Name)
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top