Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for graceful_node_shutdown_state (0.2 sec)

  1. pkg/kubelet/nodeshutdown/storage_test.go

    limitations under the License.
    */
    
    package nodeshutdown
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    )
    
    func TestLocalStorage(t *testing.T) {
    	var localStorageStateFileName = "graceful_node_shutdown_state"
    	tempdir := os.TempDir()
    	path := filepath.Join(tempdir, localStorageStateFileName)
    	l := localStorage{
    		Path: path,
    	}
    	now := time.Now()
    	want := state{
    		StartTime: now,
    		EndTime:   now,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 11 09:31:10 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    	nodeShutdownNotAdmittedReason  = "NodeShutdown"
    	nodeShutdownNotAdmittedMessage = "Pod was rejected as the node is shutting down."
    	dbusReconnectPeriod            = 1 * time.Second
    	localStorageStateFile          = "graceful_node_shutdown_state"
    )
    
    var systemDbus = func() (dbusInhibiter, error) {
    	return systemd.NewDBusCon()
    }
    
    type dbusInhibiter interface {
    	CurrentInhibitDelay() (time.Duration, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
Back to top