Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 117 for geturl (0.16 sec)

  1. cni/pkg/install/install.go

    				return nil
    			}
    		}
    
    		return fmt.Errorf("istio-cni CNI config removed from CNI config file: %s", cniConfigFilepath)
    	}
    	// Verify that Istio CNI config exists as a standalone plugin
    	cniConfigMap, err := util.ReadCNIConfigMap(cniConfigFilepath)
    	if err != nil {
    		return err
    	}
    
    	if cniConfigMap["type"] != "istio-cni" {
    		return fmt.Errorf("istio-cni CNI config file modified: %s", cniConfigFilepath)
    	}
    	return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe.go

    			facts = append(facts, trafficMatch.String())
    		}
    	}
    
    	return match, facts
    }
    
    func renderStringMatch(sm *v1alpha3.StringMatch) string {
    	if sm == nil {
    		return ""
    	}
    
    	switch x := sm.MatchType.(type) {
    	case *v1alpha3.StringMatch_Exact:
    		return x.Exact
    	case *v1alpha3.StringMatch_Prefix:
    		return x.Prefix + "*"
    	}
    
    	return sm.String()
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  3. istioctl/pkg/analyze/analyze.go

    		if info.IsDir() {
    			if !recursive && dir != path {
    				return filepath.SkipDir
    			}
    			return nil
    		}
    
    		if !isValidFile(path) {
    			fmt.Fprintf(cmd.ErrOrStderr(), "Skipping file %v, recognized file extensions are: %v\n", path, fileExtensions)
    			return nil
    		}
    
    		r, err := os.Open(path)
    		if err != nil {
    			return err
    		}
    		runtime.SetFinalizer(r, func(x *os.File) {
    			err = x.Close()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. istioctl/pkg/authz/authz.go

    				}
    			} else {
    				return fmt.Errorf("expecting pod name or config dump, found: %d", len(args))
    			}
    
    			analyzer, err := NewAnalyzer(configDump)
    			if err != nil {
    				return err
    			}
    			analyzer.Print(cmd.OutOrStdout())
    			return nil
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. istioctl/pkg/wait/wait.go

    			}
    			select {
    			case <-ictx.Done():
    				return ictx.Err()
    			default:
    				continue
    			}
    		}
    
    		return nil
    	})
    	return g
    }
    
    type watcher struct {
    	resultsChan chan string
    	errorChan   chan error
    	ctx         context.Context
    }
    
    func withContext(ctx context.Context) *watcher {
    	return &watcher{
    		resultsChan: make(chan string, 1),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  6. cni/pkg/plugin/testdata/dns.txt.golden

    -A ISTIO_OUTPUT -m owner --gid-owner 1337 -j RETURN
    -A ISTIO_OUTPUT -p tcp --dport 53 -j REDIRECT --to-ports 15053
    -A ISTIO_OUTPUT -d 127.0.0.1/32 -j RETURN
    -A ISTIO_OUTPUT -j ISTIO_REDIRECT
    -A OUTPUT -p udp --dport 53 -m owner --uid-owner 1337 -j RETURN
    -A OUTPUT -p udp --dport 53 -m owner --gid-owner 1337 -j RETURN
    -A OUTPUT -p udp --dport 53 -j REDIRECT --to-port 15053
    COMMIT
    * raw
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 16 22:54:20 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  7. istioctl/pkg/metrics/metrics.go

    	case model.Vector:
    		if v.Len() < 1 {
    			log.Debugf("no values for query: %s", query)
    			return 0, nil
    		}
    
    		return float64(v[0].Value), nil
    	default:
    		return 0, errors.New("bad metric value type returned for query")
    	}
    }
    
    func convertLatencyToDuration(val float64) time.Duration {
    	return time.Duration(val) * time.Millisecond
    }
    
    func printHeader(writer io.Writer) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. operator/cmd/mesh/shared.go

    		var response string
    		_, err := fmt.Scanln(&response)
    		if err != nil {
    			return false
    		}
    		switch strings.ToUpper(response) {
    		case "Y", "YES":
    			return true
    		case "N", "NO":
    			return false
    		}
    	}
    }
    
    func KubernetesClients(kubeClient kube.CLIClient, l clog.Logger) (kube.CLIClient, client.Client, error) {
    	client, err := client.New(kubeClient.RESTConfig(), client.Options{Scheme: kube.IstioScheme})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  9. cni/pkg/util/podutil.go

    		// Neither namespace nor pod has ambient mode enabled
    		return false
    	}
    	if podHasSidecar(pod) {
    		// Ztunnel and sidecar for a single pod is currently not supported; opt out.
    		return false
    	}
    	if pod.GetLabels()[constants.DataplaneModeLabel] == constants.DataplaneModeNone {
    		// Pod explicitly asked to not have ambient redirection enabled
    		return false
    	}
    	return true
    }
    
    func podHasSidecar(pod *corev1.Pod) bool {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. operator/cmd/mesh/profile-diff.go

    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 2 {
    				return fmt.Errorf("diff requires two profiles")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			isdifferent, err := profileDiff(cmd, pfArgs, args)
    			if err != nil {
    				return err
    			}
    			if isdifferent {
    				os.Exit(1)
    			}
    			return nil
    		},
    	}
    }
    
    // profileDiff compare two profile files.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top