Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for containerd (0.23 sec)

  1. cni/pkg/nodeagent/podcgroupns.go

    	var podUID types.UID
    	var containerID string
    	for _, cgroup := range cgroups {
    		candidatePodUID, candidateContainerID, ok := getPodUIDAndContainerIDFromCGroupPath(cgroup.GroupPath)
    		switch {
    		case !ok:
    			// Cgroup did not contain a container ID.
    			continue
    		case containerID == "":
    			// This is the first container ID found so far.
    			podUID = candidatePodUID
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin.go

    	Kubernetes      Kubernetes `json:"kubernetes"`
    }
    
    // K8sArgs is the valid CNI_ARGS used for Kubernetes
    // The field names need to match exact keys in containerd args for unmarshalling
    // https://github.com/containerd/containerd/blob/ced9b18c231a28990617bc0a4b8ce2e81ee2ffa1/pkg/cri/server/sandbox_run.go#L526-L532
    type K8sArgs struct {
    	types.CommonArgs
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. cmd/update.go

    	} {
    		_, err = os.Stat(envfile)
    		if err == nil {
    			return true
    		}
    	}
    	if osIsNotExist(err) {
    		// if none of the files are present we may be running inside
    		// CRI-O, Containerd etc..
    		// Fallback to our container specific ENVs if they are set.
    		return env.IsSet("MINIO_ACCESS_KEY_FILE")
    	}
    
    	// Log error, as we will not propagate it to caller
    	internalLogIf(GlobalContext, err)
    
    	return err == nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

    	cniConf := buildMockConf(true, url)
    
    	pod, ns := buildFakePodAndNSForClient()
    
    	proxy := corev1.Container{Name: "istio-proxy"}
    	app := corev1.Container{Name: "app"}
    
    	pod.Spec.Containers = []corev1.Container{app, proxy}
    	pod.ObjectMeta.Annotations = map[string]string{annotation.SidecarStatus.Name: "true"}
    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)
  5. istioctl/pkg/precheck/precheck.go

    		if scopingImpacted = meshData["discoverySelectors"] != nil; !scopingImpacted {
    			continue
    		}
    		// Check if mitigation is already in place
    		for _, container := range deployment.Spec.Template.Spec.Containers {
    			if container.Name == "discovery" {
    				for _, envVar := range container.Env {
    					if envVar.Name == "ENHANCED_RESOURCE_SCOPING" && envVar.Value == "true" {
    						scopingImpacted = false
    						break
    					}
    				}
    			}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. operator/cmd/mesh/test-util_test.go

    	return obj
    }
    
    // mustGetContainer returns the container tree with the given name in the deployment with the given name.
    func mustGetContainer(g *WithT, objs *ObjectSet, deploymentName, containerName string) map[string]any {
    	obj := mustGetDeployment(g, objs, deploymentName)
    	container := obj.Container(containerName)
    	g.Expect(container).Should(Not(BeNil()), fmt.Sprintf("Expected to get container %s in deployment %s", containerName, deploymentName))
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. cni/pkg/cmd/root.go

    		"The name of the istio init container (will crash-loop if CNI is not configured for the pod)")
    	registerStringParameter(constants.RepairInitTerminationMsg, "",
    		"The expected termination message for the init container when crash-looping because of CNI misconfiguration")
    	registerIntegerParameter(constants.RepairInitExitCode, iptables.ValidationErrorCode,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. operator/cmd/mesh/manifest-generate_test.go

    	for _, tt := range tests {
    		for _, os := range objs {
    			containerName := tt.deploymentName
    			if tt.containerName != "" {
    				containerName = tt.containerName
    			}
    			container := mustGetContainer(g, os, tt.deploymentName, containerName)
    			g.Expect(container).Should(HavePathValueEqual(PathValue{"image", tt.want}))
    		}
    	}
    }
    
    func TestManifestGenerateGateways(t *testing.T) {
    	g := NewWithT(t)
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  9. cni/pkg/plugin/cnieventclient_test.go

    	eventC := CNIEventClient{
    		client: c,
    		url:    address + constants.CNIAddEventPath,
    	}
    	return eventC
    }
    
    var fakeCmdArgs = &skel.CmdArgs{
    	Netns:       "someNetNS",
    	IfName:      "ethBro",
    	ContainerID: "bbb-eee-www",
    }
    
    var (
    	fakeIP                 = net.ParseIP("99.9.9.9")
    	fakeGW                 = net.ParseIP("88.9.9.9")
    	fakeIDX                = 0
    	fakePrevResultIPConfig = cniv1.IPConfig{
    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)
  10. src/bytes/bytes.go

    // ContainsAny reports whether any of the UTF-8-encoded code points in chars are within b.
    func ContainsAny(b []byte, chars string) bool {
    	return IndexAny(b, chars) >= 0
    }
    
    // ContainsRune reports whether the rune is contained in the UTF-8-encoded byte slice b.
    func ContainsRune(b []byte, r rune) bool {
    	return IndexRune(b, r) >= 0
    }
    
    // ContainsFunc reports whether any of the UTF-8-encoded code points r within b satisfy f(r).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top