Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MatchesPod (0.31 sec)

  1. pkg/test/framework/components/echo/kube/util.go

    )
    
    type podSelector struct {
    	Label string
    	Value string
    }
    
    func (s podSelector) String() string {
    	return s.Label + "=" + s.Value
    }
    
    func (s podSelector) MatchesPod(pod *corev1.Pod) bool {
    	return pod.ObjectMeta.Labels[s.Label] == s.Value
    }
    
    func newPodSelector(cfg echo.Config) podSelector {
    	label := "app"
    	if cfg.DeployAsVM {
    		label = constants.TestVMLabel
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 03:10:51 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top