Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sleepSeconds (0.17 sec)

  1. pkg/kubelet/lifecycle/handlers_test.go

    	tests := []struct {
    		name                          string
    		sleepSeconds                  int64
    		terminationGracePeriodSeconds int64
    		expectErr                     bool
    		expectedErr                   string
    	}{
    		{
    			name:                          "valid seconds",
    			sleepSeconds:                  5,
    			terminationGracePeriodSeconds: 30,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  2. pkg/kubelet/lifecycle/handlers.go

    			msg = fmt.Sprintf("Sleep lifecycle hook (%d) for Container %q in Pod %q failed - error: %v", handler.Sleep.Seconds, container.Name, format.Pod(pod), err)
    			klog.V(1).ErrorS(err, "Sleep lifecycle hook for Container in Pod failed", "sleepSeconds", handler.Sleep.Seconds, "containerName", container.Name, "pod", klog.KObj(pod))
    		}
    		return msg, err
    	default:
    		err := fmt.Errorf("invalid handler: %v", handler)
    		msg := fmt.Sprintf("Cannot run handler: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 11:40:52 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. cluster/gce/gci/health-monitor.sh

          systemctl kill --kill-who=main "${container_runtime_name}"
          # Wait for a while, as we don't want to kill it again before it is really up.
          sleep 120
        else
          sleep "${SLEEP_SECONDS}"
        fi
      done
    }
    
    function kubelet_monitoring {
      echo "Wait for 2 minutes for kubelet to be functional"
      # TODO(andyzheng0831): replace it with a more reliable method if possible.
      sleep 120
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 20 09:19:08 UTC 2022
    - 3.3K bytes
    - Viewed (0)
Back to top