Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for url (0.13 sec)

  1. 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 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. 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 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. 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 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. cni/pkg/plugin/cnieventclient_test.go

    	"istio.io/istio/cni/pkg/nodeagent"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func fakeCNIEventClient(address string) CNIEventClient {
    	c := http.DefaultClient
    
    	eventC := CNIEventClient{
    		client: c,
    		url:    address + constants.CNIAddEventPath,
    	}
    	return eventC
    }
    
    var fakeCmdArgs = &skel.CmdArgs{
    	Netns:       "someNetNS",
    	IfName:      "ethBro",
    	ContainerID: "bbb-eee-www",
    }
    
    var (
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. cni/pkg/plugin/cnieventclient.go

    type CNIEventClient struct {
    	client *http.Client
    	url    string
    }
    
    func buildClient(address, path string) CNIEventClient {
    	c := &http.Client{
    		Transport: &http.Transport{
    			DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
    				return net.Dial("unix", address)
    			},
    		},
    		Timeout: 1000 * time.Millisecond,
    	}
    	eventC := CNIEventClient{
    		client: c,
    		url:    "http://unix" + path,
    	}
    	return eventC
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. 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 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. operator/cmd/mesh/root.go

    	"istio.io/istio/pkg/url"
    	"istio.io/istio/pkg/version"
    )
    
    var (
    	baseVersion    = binversion.OperatorVersionString
    	setFlagHelpStr = `Override an IstioOperator value, e.g. to choose a profile
    (--set profile=demo), enable or disable components (--set components.cni.enabled=true), or override Istio
    settings (--set meshConfig.enableTracing=true). See documentation for more info:` + url.IstioOperatorSpec
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. 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 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  9. 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 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  10. istioctl/pkg/util/formatting/formatter_test.go

    	output, _ := Print(msgs, JSONFormat, false)
    
    	expectedOutput := `[
    	{
    		"code": "B1",
    		"documentationUrl": "` + url.ConfigAnalysis + `/b1/",
    		"level": "Error",
    		"message": "Explosion accident: the bubble is too big",
    		"origin": "SoapBubble"
    	},
    	{
    		"code": "C1",
    		"documentationUrl": "` + url.ConfigAnalysis + `/c1/",
    		"level": "Warning",
    		"message": "Collapse danger: the castle is too old",
    		"origin": "GrandCastle"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top