1
0
mirror of https://github.com/openshift/image-registry.git synced 2026-02-05 09:45:55 +01:00

use versioned origin image for integration tests

This commit is contained in:
Ben Parees
2018-01-30 11:47:18 -05:00
parent eeb6eccdf6
commit f53be7f112

View File

@@ -1,4 +1,17 @@
package testframework
// originImageRef is the Docker image name of the OpenShift Origin container.
const originImageRef = "docker.io/openshift/origin:latest"
import (
"os"
)
var (
// originImageRef is the Docker image name of the OpenShift Origin container.
originImageRef = "docker.io/openshift/origin:latest"
)
func init() {
version := os.Getenv("ORIGIN_VERSION")
if len(version) != 0 {
originImageRef = "docker.io/openshift/origin:" + version
}
}