github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/test/util/images/images.go (about)

     1  package images
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  )
     7  
     8  var (
     9  	registry      string
    10  	cnfTestsImage string
    11  )
    12  
    13  func init() {
    14  	registry = os.Getenv("IMAGE_REGISTRY")
    15  	if registry == "" {
    16  		registry = "quay.io/openshift-kni/"
    17  	}
    18  
    19  	cnfTestsImage = os.Getenv("CNF_TESTS_IMAGE")
    20  	if cnfTestsImage == "" {
    21  		cnfTestsImage = "cnf-tests:4.7"
    22  	}
    23  }
    24  
    25  // Test returns the test image to be used
    26  func Test() string {
    27  	return fmt.Sprintf("%s%s", registry, cnfTestsImage)
    28  }