Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for invoke (0.23 sec)

  1. cni/pkg/nodeagent/cni-watcher.go

    	log := log.WithLabels("cni-event", addCmd)
    
    	log.Debugf("netns: %s", addCmd.Netns)
    
    	// The CNI node plugin should have already checked the pod against the k8s API before forwarding us the event,
    	// but we have to invoke the K8S client anyway, so to be safe we check it again here to make sure we get the same result.
    	maxStaleRetries := 10
    	msInterval := 10
    	retries := 0
    	var ambientPod *corev1.Pod
    	var err error
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  2. cni/test/install_cni.go

    //
    // Doing a go test install_cni.go by itself will not execute the test as the
    // file doesn't have a _test.go suffix, and this func doesn't start with a Test
    // prefix. This func is only meant to be invoked programmatically. A separate
    // install_cni_test.go file exists for executing this test.
    func RunInstallCNITest(t *testing.T, chainedCNIPlugin bool, preConfFile, resultFileName, delayedConfFile, expectedOutputFile,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. istioctl/pkg/clioptions/central.go

    package clioptions
    
    import (
    	"fmt"
    	"time"
    
    	"github.com/spf13/cobra"
    	"github.com/spf13/viper"
    )
    
    // CentralControlPlaneOptions holds options common to all subcommands
    // that invoke Istiod via xDS REST endpoint
    type CentralControlPlaneOptions struct {
    	// Xds is XDS endpoint, e.g. localhost:15010.
    	Xds string
    
    	// XdsPodLabel is a Kubernetes label on the Istiod pods
    	XdsPodLabel string
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jun 06 03:39:27 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/fakes_test.go

    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    // Fd returns the file descriptor
    func (f *fakeNs) Fd() uintptr {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/netns_linux_test.go

    	ns, err := OpenNetns("/proc/self/ns/net")
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	// the inode for netns is proc dynamic, so it needs to be higher than
    	// #define PROC_DYNAMIC_FIRST 0xF0000000U
    
    	if ns.Inode() < 0xF0000000 {
    		t.Fatalf("unexpected inode: %v", ns.Inode())
    	}
    	defer ns.Close()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 976 bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/podcgroupns.go

    		return nil, err
    	}
    	fd, err := GetFd(netns)
    	if err != nil {
    		netns.Close()
    		return nil, err
    	}
    	netnsObserved[inode] = struct{}{}
    	log.Debugf("found pod to netns: %s %d", uid, inode)
    
    	return &PodNetnsEntry{
    		uid:     uid,
    		netns:   netns,
    		netnsfd: fd,
    		inode:   inode,
    	}, nil
    }
    
    func isProcess(entry fs.DirEntry) bool {
    	// check if it is a directory
    	if !entry.IsDir() {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. Makefile.core.mk

    GOOS_LOCAL := $(TARGET_OS)
    
    #-----------------------------------------------------------------------------
    # Output control
    #-----------------------------------------------------------------------------
    # Invoke make VERBOSE=1 to enable echoing of the command being executed
    export VERBOSE ?= 0
    # Place the variable Q in front of a command to control echoing of the command being executed.
    Q = $(if $(filter 1,$VERBOSE),,@)
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 26 19:45:17 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/netns_linux.go

    	"fmt"
    	"runtime"
    	"sync"
    
    	netns "github.com/containernetworking/plugins/pkg/ns"
    	"golang.org/x/sys/unix"
    )
    
    type NetnsWrapper struct {
    	innerNetns netns.NetNS
    	inode      uint64
    }
    
    func (n *NetnsWrapper) Inode() uint64 {
    	return n.inode
    }
    
    func (n *NetnsWrapper) Close() error {
    	return n.innerNetns.Close()
    }
    
    func (n *NetnsWrapper) Fd() uintptr {
    	return n.innerNetns.Fd()
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Jan 31 10:05:36 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/podcgroupns_linux.go

    import (
    	"fmt"
    	"io/fs"
    	"syscall"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	if stat, ok := fi.Sys().(*syscall.Stat_t); ok {
    		return stat.Ino, nil
    	}
    	return 0, fmt.Errorf("unable to get inode")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 814 bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // Note:
      // * the number of additional invocations is not guaranteed to be exactly one.
      // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
      // * webhooks that use this option may be reordered to minimize the number of additional invocations.
      // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.4K bytes
    - Viewed (0)
Back to top