Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for lives (0.07 sec)

  1. pkg/kubelet/kubelet_pods.go

    // $ getsubids -g kubelet
    // 0: kubelet 65536 2147483648
    func parseGetSubIdsOutput(input string) (uint32, uint32, error) {
    	lines := strings.Split(strings.Trim(input, "\n"), "\n")
    	if len(lines) != 1 {
    		return 0, 0, fmt.Errorf("error parsing line %q: it must contain only one line", input)
    	}
    
    	parts := strings.Fields(lines[0])
    	if len(parts) != 4 {
    		return 0, 0, fmt.Errorf("invalid line %q", input)
    	}
    
    	// Parsing the numbers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    //
    // The purpose of this is to make it easier to read tests.
    func FixTabsOrDie(in string) string {
    	lines := bytes.Split([]byte(in), []byte{'\n'})
    	if len(lines[0]) == 0 && len(lines) > 1 {
    		lines = lines[1:]
    	}
    	// Create prefix made of tabs that we want to remove.
    	var prefix []byte
    	for _, c := range lines[0] {
    		if c != '\t' {
    			break
    		}
    		prefix = append(prefix, byte('\t'))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  3. pkg/controller/daemon/daemon_controller_test.go

    		nodeName, _ := util.GetTargetNodeName(pod)
    
    		lines = append(lines, fmt.Sprintf("node=%s current=%-5t ready=%-5t age=%-4d pod=%s now=%d available=%d",
    			nodeName,
    			hash == pod.Labels[apps.ControllerRevisionHashLabelKey],
    			ready,
    			now.Unix(),
    			pod.Name,
    			pod.CreationTimestamp.Unix(),
    			readyLast.Unix(),
    		))
    	}
    	sort.Strings(lines)
    	for _, line := range lines {
    		logger.Info(line)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  4. cluster/gce/gci/configure-helper.sh

       addockeropt "\"mtu\": 1460,"
       addockeropt "\"storage-driver\": \"overlay2\","
       echo "setting live restore"
       # Disable live-restore if the environment variable is set.
       if [[ "${DISABLE_DOCKER_LIVE_RESTORE:-false}" == "true" ]]; then
          addockeropt "\"live-restore\": false,"
       else
          addockeropt "\"live-restore\": true,"
       fi
    }
    
    function assemble-docker-flags {
      echo "Assemble docker options"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/proxier_test.go

    		fileContent string
    		want        []string
    		wantErr     bool
    	}{
    		{
    			name: "valid content",
    			fileContent: `libiscsi_tcp 28672 1 iscsi_tcp, Live 0xffffffffc07ae000
    libiscsi 57344 3 ib_iser,iscsi_tcp,libiscsi_tcp, Live 0xffffffffc079a000
    raid10 57344 0 - Live 0xffffffffc0597000`,
    			want:    []string{"libiscsi_tcp", "libiscsi", "raid10"},
    			wantErr: false,
    		},
    	}
    	for _, test := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_test.go

    		wantErr      bool
    	}{
    		{
    			name:         "valid",
    			input:        "0: kubelet 65536 2147483648",
    			wantFirstID:  65536,
    			wantRangeLen: 2147483648,
    		},
    		{
    			name:    "multiple lines",
    			input:   "0: kubelet 1 2\n1: kubelet 3 4\n",
    			wantErr: true,
    		},
    		{
    			name:    "wrong format",
    			input:   "0: kubelet 65536",
    			wantErr: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  7. cluster/gce/util.sh

        echo "${name}:"
        for k in "${!map[@]}"; do
          echo "  ${k}:"
          declare -a values
          IFS="${item_sep}" read -ra values <<<"${map[$k]}"
          for val in "${values[@]}"; do
            # declare across two lines so errexit can catch failures
            declare v
            v=$(yaml-quote "${val}")
            echo "    - ${v}"
          done
        done
      fi
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:17 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet.go

    	kl.statusManager.SetPodStatus(pod, v1.PodStatus{
    		Phase:   v1.PodFailed,
    		Reason:  reason,
    		Message: "Pod was rejected: " + message})
    }
    
    // canAdmitPod determines if a pod can be admitted, and gives a reason if it
    // cannot. "pod" is new pod, while "pods" are all admitted pods
    // The function returns a boolean value indicating whether the pod
    // can be admitted, a brief single-word reason and a message explaining why
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top