Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DisruptionTarget (0.18 sec)

  1. pkg/kubelet/types/pod_status.go

    func PodConditionSharedByKubelet(conditionType v1.PodConditionType) bool {
    	if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
    		if conditionType == v1.DisruptionTarget {
    			return true
    		}
    	}
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. pkg/kubelet/types/pod_status_test.go

    }
    
    func TestPodConditionSharedByKubelet(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PodDisruptionConditions, true)
    
    	trueCases := []v1.PodConditionType{
    		v1.DisruptionTarget,
    	}
    
    	for _, tc := range trueCases {
    		if !PodConditionSharedByKubelet(tc) {
    			t.Errorf("Expect %q to be condition shared by kubelet.", tc)
    		}
    	}
    
    	falseCases := []v1.PodConditionType{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top