- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for it (0.15 sec)
-
cni/pkg/nodeagent/net_test.go
assert.NoError(t, err) fakeIPSetDeps.AssertExpectations(t) } // for tests that call `runtime.GC()` - we have no control over when the GC is actually scheduled, // and it is flake-prone to check for closure after calling it, this retries for a bit to make // sure the netns is closed eventually. func assertNSClosed(t *testing.T, closed *atomic.Bool) { for i := 0; i < 5; i++ { if closed.Load() { return }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
testDoAddRun(t, cniConf, excludedNS, pod, ns) wasCalled := serverClose() // If the pod is being added to a namespace that is explicitly excluded by plugin config denylist // it should never be added, even if the namespace has the annotation assert.Equal(t, wasCalled, false) } func TestCmdAdd(t *testing.T) { pod, ns := buildFakePodAndNSForClient()
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) -
cni/cmd/istio-cni/main.go
return err } defer func() { // Log sync will send logs to install-cni container via UDS. // We don't need a timeout here because underlying the log pkg already handles it. // this may fail, but it should be safe to ignore according // to https://github.com/uber-go/zap/issues/328 _ = log.Sync() }() // TODO: implement plugin version funcs := skel.CNIFuncs{ Add: plugin.CmdAdd,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 13:56:46 GMT 2024 - 1.9K bytes - Viewed (0) -
manifests/charts/istio-cni/values.yaml
# Note this gives the DaemonSet a relatively high privilege, as it can delete any Pod. deletePods: false # repairPods will dynamically repair any broken pod by setting up the pod networking configuration even after it has started. # Note the pod will be crashlooping, so this may take a few minutes to become fully functional based on when the retry occurs.
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 5.2K bytes - Viewed (1) -
cni/pkg/plugin/plugin.go
return nil } } if !pi.Containers.Contains(ISTIOPROXY) { log.Infof("excluded because it does not have istio-proxy container (have %v)", sets.SortedList(pi.Containers)) return nil } if pi.ProxyType != "" && pi.ProxyType != "sidecar" { log.Infof("excluded %s/%s pod because it has proxy type %s", podNamespace, podName, pi.ProxyType) return nil } val := pi.Annotations[injectAnnotationKey]
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 10.5K bytes - Viewed (0) -
cni/pkg/util/podutil.go
"status", ) if errors.IsNotFound(err) { return nil } return err } // Get any IPs currently assigned to the Pod. // // If 'PodIPs' exists, it is preferred (and should be guaranteed to contain the address in 'PodIP'), // otherwise fallback to 'PodIP'. // // Note that very early in the pod's lifecycle (before all the node CNI plugin invocations finish)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 3.9K bytes - Viewed (0) -
common/scripts/setup_env.sh
fi # echo ${CONDITIONAL_HOST_MOUNTS} # This function checks if the file exists. If it does, it creates a randomly named host location # for the file, adds it to the host KUBECONFIG, and creates a mount for it. Note that we use a copy # of the original file, so that the container can write to it. add_KUBECONFIG_if_exists () { if [[ -f "$1" ]]; then local local_config local_config="$(mktemp)"
Shell Script - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu May 02 16:31:40 GMT 2024 - 7.6K bytes - Viewed (0) -
cni/pkg/nodeagent/options.go
// since the IP is normally the same), we SNAT identified host probes in the host netns to a fixed // APIPA/"link-local" IP. // // It doesn't matter what this IP is, so long as it's not routable and doesn't collide with anything else. // // IPv6 link local ranges are designed to be collision-resistant by default, and so probably never need to be overridden
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 2K bytes - Viewed (0) -
manifests/charts/istio-cni/templates/daemonset.yaml
# But we don't need _everything_ in `privileged`, so drop+readd capabilities based on feature. # privileged is redundant with CAP_SYS_ADMIN # since it's redundant, hardcode it to `true`, then manually drop ALL + readd granular # capabilities we actually require capabilities: drop: - ALL add:
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 9.4K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
client.RunAndWait(ctx.Done()) payload, _ := json.Marshal(valid) // serialize our fake plugin event addEvent, err := processAddEvent(payload) assert.Equal(t, err, nil) // Push it thru the handler pluginServer.ReconcileCNIAddEvent(ctx, addEvent) waitForMockCalls() assertPodAnnotated(t, client, pod) // Assert expected calls actually made fs.AssertExpectations(t) }
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)