Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for defer (0.13 sec)

  1. istioctl/pkg/dashboard/dashboard.go

    }
    
    func ClosePortForwarderOnInterrupt(fw kube.PortForwarder) {
    	go func() {
    		signals := make(chan os.Signal, 1)
    		signal.Notify(signals, os.Interrupt)
    		defer signal.Stop(signals)
    		<-signals
    		fw.Close()
    	}()
    }
    
    func openBrowser(url string, writer io.Writer, browser bool) {
    	var err error
    
    	fmt.Fprintf(writer, "%s\n", url)
    
    	if !browser {
    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)
  2. istioctl/pkg/proxyconfig/proxyconfig.go

    }
    
    func readFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    			log.Errorf("failed to close %s: %s", filename, err)
    		}
    	}()
    	return io.ReadAll(file)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  3. istioctl/pkg/metrics/metrics.go

    	}
    
    	if err = fw.Start(); err != nil {
    		return fmt.Errorf("failure running port forward process: %v", err)
    	}
    
    	// Close the forwarder either when we exit or when an this processes is interrupted.
    	defer fw.Close()
    	dashboard.ClosePortForwarderOnInterrupt(fw)
    
    	log.Debugf("port-forward to prometheus pod ready")
    
    	promAPI, err := prometheusAPI(fmt.Sprintf("http://%s", fw.Address()))
    	if err != nil {
    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)
  4. manifests/charts/istio-control/istio-discovery/values.yaml

        defaultTemplates: []
      istiodRemote:
        # Sidecar injector mutating webhook configuration clientConfig.url value.
        # For example: https://$remotePilotAddress:15017/inject
        # The host should not refer to a service running in the cluster; use a service reference by specifying
        # the clientConfig.service field instead.
        injectionURL: ""
    
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 22:00:40 GMT 2024
    - 20.3K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher_test.go

    		PodName:      "pod-bingo",
    		PodNamespace: "funkyns",
    		IPs: []IPConfig{{
    			Address: *addr,
    		}},
    	}
    
    	setupLogging()
    	NodeName = "testnode"
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod-bingo",
    			Namespace: "funkyns",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/storage/v1beta1/generated.proto

      // not share the same nomenclature for nodes. For example, Kubernetes may
      // refer to a given node as "node1", but the storage system may refer to
      // the same node as "nodeA". When Kubernetes issues a command to the storage
      // system to attach a volume to a specific node, it can use this field to
      // refer to the node name using the ID that the storage system will
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  7. manifests/charts/istiod-remote/templates/configmap.yaml

    {{- define "mesh" }}
        # The trust domain corresponds to the trust root of a system.
        # Refer to https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain
        trustDomain: "cluster.local"
    
        # The namespace to treat as the administrative root namespace for Istio configuration.
        # When processing a leaf namespace Istio will search for declarations in that namespace first
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  8. architecture/ambient/ztunnel.md

    ## HBONE
    
    Along with pass-through traffic, Ztunnel supports the "HBONE" (HTTP-Based Overlay Network) protocol.
    This is not really so much a new protocol, but rather a name we came up with to refer to the expectations of clients and servers communicating in the mesh.
    
    HBONE is just a standard HTTP `CONNECT` tunnel, over mutual TLS with mesh (SPIFFE) certificates, on a well known port (15008).
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 22:35:16 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/networking/v1beta1/generated.proto

      // Implementations of this API should ignore Ingresses without a class
      // specified. An IngressClass resource may be marked as default, which can
      // be used to set a default value for this field. For more information,
      // refer to the IngressClass documentation.
      // +optional
      optional string ingressClassName = 4;
    
      // backend is the default backend capable of servicing requests that don't match any
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

    message WebhookClientConfig {
      // `url` gives the location of the webhook, in standard URL form
      // (`scheme://host:port/path`). Exactly one of `url` or `service`
      // must be specified.
      //
      // The `host` should not refer to a service running in the cluster; use
      // the `service` field instead. The host might be resolved via external
      // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.4K bytes
    - Viewed (0)
Back to top