Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for attr_ (0.05 sec)

  1. pkg/kubelet/kubelet.go

    			otherPods = append(otherPods, op)
    		}
    		attrs.OtherPods = otherPods
    	}
    	for _, podAdmitHandler := range kl.admitHandlers {
    		if result := podAdmitHandler.Admit(attrs); !result.Admit {
    			return false, result.Reason, result.Message
    		}
    	}
    
    	return true, "", ""
    }
    
    func (kl *Kubelet) canRunPod(pod *v1.Pod) lifecycle.PodAdmitResult {
    	attrs := &lifecycle.PodAdmitAttributes{Pod: pod}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    	podsToReject []*v1.Pod
    }
    
    // Admit rejects all pods in the podsToReject list with a matching UID.
    func (a *testPodAdmitHandler) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
    	for _, podToReject := range a.podsToReject {
    		if podToReject.UID == attrs.Pod.UID {
    			return lifecycle.PodAdmitResult{Admit: false, Reason: "Rejected", Message: "Pod is rejected"}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. pilot/pkg/model/telemetry_logging_test.go

    				DisableBuiltinLabels: true,
    				Body: &otlpcommon.AnyValue{
    					Value: &otlpcommon.AnyValue_StringValue{
    						StringValue: EnvoyTextLogFormat,
    					},
    				},
    			},
    		},
    		{
    			name:        "with attrs",
    			logName:     OtelEnvoyAccessLogFriendlyName,
    			clusterName: fakeCluster,
    			hostname:    fakeAuthority,
    			body:        EnvoyTextLogFormat,
    			labels: &structpb.Struct{
    				Fields: map[string]*structpb.Value{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top