Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Tocker (0.17 sec)

  1. cni/pkg/pluginlistener/listener.go

    package pluginlistener
    
    import (
    	"fmt"
    	"net"
    	"os"
    	"path/filepath"
    
    	"istio.io/istio/pkg/log"
    )
    
    func NewListener(path string) (net.Listener, error) {
    	// Remove unix socket before use.
    	if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
    		// Anything other than "file not found" is an error.
    		return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables.go

    	//
    	// We want to do the same thing in ambient but can't rely on podSpec injection. So, do effectively the same thing,
    	// but with iptables rules - use `--socket-exists` as a proxy for "is this a forwarded packet" vs "is this originating from
    	// a local node socket". If the latter, outside the pod in the host netns, redirect that traffic to a hardcoded/custom proxy
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  3. cni/test/install_cni.go

    		}
    	}
    	t.Logf("PASS: All temporary files removed from %v", tempCNIConfDir)
    }
    
    // doTest sets up necessary environment variables, runs the Docker installation
    // container and verifies output file correctness.
    func doTest(t *testing.T, chainedCNIPlugin bool, wd, preConfFile, resultFileName, delayedConfFile, expectedOutputFile,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/ztunnelserver.go

    	}
    
    	resolvedAddr, err := net.ResolveUnixAddr("unixpacket", addr)
    	if err != nil {
    		return nil, fmt.Errorf("failed to resolve unix addr: %w", err)
    	}
    	// remove potentially existing address
    	// Remove unix socket before use, if one is leftover from previous CNI restart
    	if err := os.Remove(addr); err != nil && !os.IsNotExist(err) {
    		// Anything other than "file not found" is an error.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/informers_test.go

    	waitForMockCalls()
    	// wait until pod add was called
    	mt.Assert(EventTotals.Name(), map[string]string{"type": "add"}, monitortest.AtLeast(1))
    
    	assertPodAnnotated(t, client, pod)
    
    	// check expectations on mocked calls
    	fs.AssertExpectations(t)
    }
    
    func assertPodAnnotated(t *testing.T, client kube.Client, pod *corev1.Pod) {
    	for i := 0; i < 5; i++ {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/netns_linux.go

    		}
    		defer func() {
    			err := threadNS.Set() // switch back
    			if err == nil {
    				// Unlock the current thread only when we successfully switched back
    				// to the original namespace; otherwise leave the thread locked which
    				// will force the runtime to scrap the current thread, that is maybe
    				// not as optimal but at least always safe to do.
    				runtime.UnlockOSThread()
    			}
    		}()
    
    		return toRun()
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 31 10:05:36 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate_test.go

            sidecar.istio.io/bootstrapOverride: "istio-custom-bootstrap-config"
          labels:
            app: helloworld
            version: v1
        spec:
          containers:
            - name: helloworld
              image: docker.io/istio/examples-helloworld-v1
              resources:
                requests:
                  cpu: "100m"
              imagePullPolicy: IfNotPresent
              ports:
                - containerPort: 5000
    `
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/podcgroupns.go

    	// - /docker/8d461fa5765781bcf5f7eb192f101bc3103d4b932e26236f43feecfa20664f96/kubepods/besteffort/poddaa5c7ee-3484-4533-af39-3591564fd03e/aff34703e5e1f89443e9a1bffcc80f43f74d4808a2dd22c8f88c08547b323934
    	// - /kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod2c48913c-b29f-11e7-9350-020968147796.slice/docker-9bca8d63d5fa610783847915bcff0ecac1273e5b4bed3f6fa1b07350e0135961.scope
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    	}
    
    	if hIP := ingress.pods[0].Status.HostIP; hIP != "" {
    		return hIP
    	}
    
    	// The scope of this function is to get the IP from Kubernetes, we do not
    	// ask Docker or minikube for an IP.
    	// See https://istio.io/docs/tasks/traffic-management/ingress/ingress-control/#determining-the-ingress-ip-and-ports
    	return "unknown"
    }
    
    func printIngressInfo(
    	writer io.Writer,
    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)
  10. cni/pkg/monitoring/monitoring.go

    	if port <= 0 {
    		return
    	}
    	mux := http.NewServeMux()
    	var listener net.Listener
    	var err error
    	if listener, err = net.Listen("tcp", fmt.Sprintf(":%d", port)); err != nil {
    		log.Errorf("unable to listen on socket: %v", err)
    		return
    	}
    	exporter, err := monitoring.RegisterPrometheusExporter(nil, nil)
    	if err != nil {
    		log.Errorf("could not set up prometheus exporter: %v", err)
    		return
    	}
    	mux.Handle(path, exporter)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 07:54:01 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top