Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DiskPressureCondition (0.61 sec)

  1. pkg/kubelet/nodestatus/setters.go

    		}
    
    		if newCondition {
    			node.Status.Conditions = append(node.Status.Conditions, *condition)
    		}
    		return nil
    	}
    }
    
    // DiskPressureCondition returns a Setter that updates the v1.NodeDiskPressure condition on the node.
    func DiskPressureCondition(nowFunc func() time.Time, // typically Kubelet.clock.Now
    	pressureFunc func() bool, // typically Kubelet.evictionManager.IsUnderDiskPressure
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status.go

    	)
    
    	setters = append(setters,
    		nodestatus.MemoryPressureCondition(kl.clock.Now, kl.evictionManager.IsUnderMemoryPressure, kl.recordNodeStatusEvent),
    		nodestatus.DiskPressureCondition(kl.clock.Now, kl.evictionManager.IsUnderDiskPressure, kl.recordNodeStatusEvent),
    		nodestatus.PIDPressureCondition(kl.clock.Now, kl.evictionManager.IsUnderPIDPressure, kl.recordNodeStatusEvent),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. pkg/kubelet/nodestatus/setters_test.go

    					eventType: eventType,
    					event:     event,
    				})
    			}
    			pressureFunc := func() bool {
    				return tc.pressure
    			}
    			// construct setter
    			setter := DiskPressureCondition(nowFunc, pressureFunc, recordEventFunc)
    			// call setter on node
    			if err := setter(ctx, tc.node); err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    			// check expected condition
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top