Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for url (0.21 sec)

  1. istioctl/pkg/multixds/gather.go

    	})
    	if err != nil {
    		return nil, err
    	}
    	for _, whc := range webhooks.Items {
    		for _, wh := range whc.Webhooks {
    			if wh.ClientConfig.URL != nil {
    				u, err := url.Parse(*wh.ClientConfig.URL)
    				if err != nil {
    					return nil, fmt.Errorf("parsing webhook URL: %w", err)
    				}
    				if isMCPAddr(u) {
    					return parseMCPAddr(u)
    				}
    				port := u.Port()
    				if port == "" {
    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)
  2. cni/pkg/plugin/plugin_test.go

    	return nil
    }
    
    // returns the test server URL and a dispose func for the test server
    func setupCNIEventClientWithMockServer(serverErr bool) (string, func() bool) {
    	cniAddServerCalled := false
    	// replace the global CNI client with mock
    	newCNIClient = func(address, path string) CNIEventClient {
    		c := http.DefaultClient
    
    		eventC := CNIEventClient{
    			client: c,
    			url:    address + path,
    		}
    		return eventC
    	}
    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)
  3. istioctl/pkg/dashboard/dashboard.go

    		fw.Close()
    	}()
    }
    
    func openBrowser(url string, writer io.Writer, browser bool) {
    	var err error
    
    	fmt.Fprintf(writer, "%s\n", url)
    
    	if !browser {
    		fmt.Fprint(writer, "skipping opening a browser")
    		return
    	}
    
    	switch runtime.GOOS {
    	case "linux":
    		err = exec.Command("xdg-open", url).Start()
    	case "windows":
    		err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. istioctl/pkg/validate/validate.go

    	}
    	objLabels, err := GetTemplateLabels(un)
    	if err != nil {
    		return err
    	}
    	url := fmt.Sprintf("See %s\n", url.DeploymentRequirements)
    	if !labels.HasCanonicalServiceName(objLabels) || !labels.HasCanonicalServiceRevision(objLabels) {
    		fmt.Fprintf(writer, "deployment %q may not provide Istio metrics and telemetry labels: %q. "+url,
    			fmt.Sprintf("%s/%s:", un.GetName(), un.GetNamespace()), objLabels)
    	}
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. istioctl/pkg/tag/generate_test.go

    					}
    				}
    				if tc.whURL != "" {
    					if validationWhConf.URL == nil {
    						t.Fatalf("expected validation URL %s, got nil", tc.whURL)
    					}
    					if *validationWhConf.URL != tc.whURL {
    						t.Fatalf("expected validation URL %s, got %s", tc.whURL, *validationWhConf.URL)
    					}
    				}
    				if tc.whCA != "" {
    					if string(validationWhConf.CABundle) != tc.whCA {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  6. istioctl/pkg/admin/istiodconfig.go

    			Name:            slp.scope,
    			StackTraceLevel: slp.logLevel,
    		}
    		scopeInfos = append(scopeInfos, si)
    	}
    	return scopeInfos, nil
    }
    
    type ControlzClient struct {
    	baseURL    *url.URL
    	httpClient *http.Client
    }
    
    func (c *ControlzClient) GetScopes() ([]*ScopeInfo, error) {
    	var scopeInfos []*ScopeInfo
    	resp, err := c.httpClient.Get(c.baseURL.String())
    	if err != nil {
    		return nil, err
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  7. istioctl/pkg/kubeinject/kubeinject.go

    }
    
    func (e ExternalInjector) Inject(pod *corev1.Pod, deploymentNS string) ([]byte, error) {
    	cc := e.clientConfig
    	if cc == nil {
    		return nil, nil
    	}
    	var address string
    	if cc.URL != nil {
    		address = *cc.URL
    	}
    	var certPool *x509.CertPool
    	if len(cc.CABundle) > 0 {
    		certPool = x509.NewCertPool()
    		certPool.AppendCertsFromPEM(cc.CABundle)
    	} else {
    		var err error
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/generate.go

    	}
    
    	return tagWhYAML, nil
    }
    
    func fixWhConfig(client kube.Client, whConfig *tagWebhookConfig) (*tagWebhookConfig, error) {
    	if whConfig.URL != "" {
    		webhookURL, err := url.Parse(whConfig.URL)
    		if err == nil {
    			webhookURL.Path = "/validate"
    			whConfig.URL = webhookURL.String()
    		}
    	}
    
    	// ValidatingWebhookConfiguration failurePolicy is managed by Istiod, so if currently we already have a webhook in cluster
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  9. istioctl/pkg/analyze/analyze.go

    	"istio.io/istio/pkg/config/analysis/msg"
    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/multicluster"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/url"
    )
    
    // AnalyzerFoundIssuesError indicates that at least one analyzer found problems.
    type AnalyzerFoundIssuesError struct{}
    
    // FileParseError indicates a provided file was unable to be parsed.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. istioctl/pkg/precheck/precheck.go

    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/config/schema/kubetypes"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/controllers"
    	"istio.io/istio/pkg/url"
    	"istio.io/istio/pkg/util/sets"
    )
    
    func Cmd(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    	var skipControlPlane bool
    	outputThreshold := formatting.MessageThreshold{Level: diag.Warning}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top