Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OverrideInhibitDelay (0.22 sec)

  1. pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go

    }
    
    const (
    	logindConfigDirectory = "/etc/systemd/logind.conf.d/"
    	kubeletLogindConf     = "99-kubelet.conf"
    )
    
    // OverrideInhibitDelay writes a config file to logind overriding InhibitDelayMaxSec to the value desired.
    func (bus *DBusCon) OverrideInhibitDelay(inhibitDelayMax time.Duration) error {
    	err := os.MkdirAll(logindConfigDirectory, 0755)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    	CurrentInhibitDelay() (time.Duration, error)
    	InhibitShutdown() (systemd.InhibitLock, error)
    	ReleaseInhibitLock(lock systemd.InhibitLock) error
    	ReloadLogindConf() error
    	MonitorShutdown() (<-chan bool, error)
    	OverrideInhibitDelay(inhibitDelayMax time.Duration) error
    }
    
    // managerImpl has functions that can be used to interact with the Node Shutdown Manager.
    type managerImpl struct {
    	logger       klog.Logger
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
  3. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    	return nil
    }
    
    func (f *fakeDbus) ReloadLogindConf() error {
    	return nil
    }
    
    func (f *fakeDbus) MonitorShutdown() (<-chan bool, error) {
    	return f.shutdownChan, nil
    }
    
    func (f *fakeDbus) OverrideInhibitDelay(inhibitDelayMax time.Duration) error {
    	f.didOverrideInhibitDelay = true
    	return nil
    }
    
    func makePod(name string, priority int32, terminationGracePeriod *int64) *v1.Pod {
    	return &v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top