github.com/kubeshop/testkube@v1.17.23/cmd/kubectl-testkube/commands/renderer/labels.go (about)

     1  package renderer
     2  
     3  import (
     4  	"github.com/kubeshop/testkube/pkg/api/v1/testkube"
     5  	"github.com/kubeshop/testkube/pkg/ui"
     6  )
     7  
     8  func RenderStringArray(title string, a []string) {
     9  	if len(a) > 0 {
    10  		ui.Warn(title+":", a...)
    11  	}
    12  }
    13  
    14  func RenderStringMap(title string, m map[string]string) {
    15  	if len(m) > 0 {
    16  		ui.Warn(title+":", testkube.MapToString(m))
    17  	}
    18  }