Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for recordEventFunc (0.54 sec)

  1. pkg/kubelet/nodestatus/setters.go

    			node.Status.Conditions = append(node.Status.Conditions, newNodeReadyCondition)
    		}
    		if needToRecordEvent {
    			if newNodeReadyCondition.Status == v1.ConditionTrue {
    				recordEventFunc(v1.EventTypeNormal, events.NodeReady)
    			} else {
    				recordEventFunc(v1.EventTypeNormal, events.NodeNotReady)
    				klog.InfoS("Node became not ready", "node", klog.KObj(node), "condition", newNodeReadyCondition)
    			}
    		}
    		return nil
    	}
    }
    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/nodestatus/setters_test.go

    			}
    			events := []testEvent{}
    			recordEventFunc := func(eventType, event string) {
    				events = append(events, testEvent{
    					eventType: eventType,
    					event:     event,
    				})
    			}
    			// construct setter
    			setter := ReadyCondition(nowFunc, runtimeErrorsFunc, networkErrorsFunc, storageErrorsFunc, cmStatusFunc, nodeShutdownErrorsFunc, recordEventFunc, !tc.disableLocalStorageCapacityIsolation)
    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