images

package
v1.3.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const InternalRegistryAddr = "ci.dev.openshift.redhat.com:5000"

Internal OpenShift registry to fetch the RHEL7 images from

Variables

This section is empty.

Functions

func BuildAndPushImageOfSizeWithBuilder added in v1.3.0

func BuildAndPushImageOfSizeWithBuilder(
	oc *exutil.CLI,
	dClient *dockerclient.Client,
	namespace, name, tag string,
	size uint64,
	numberOfLayers int,
	shouldSucceed bool,
) error

BuildAndPushImageOfSizeWithBuilder tries to build an image of wanted size and number of layers. Built image is stored as an image stream tag <name>:<tag>. If shouldSucceed is false, a build is expected to fail with a denied error. Note the size is only approximate. Resulting image size will be different depending on used compression algorithm and metadata overhead.

func BuildAndPushImageOfSizeWithDocker added in v1.3.0

func BuildAndPushImageOfSizeWithDocker(
	oc *exutil.CLI,
	dClient *dockerclient.Client,
	name, tag string,
	size uint64,
	numberOfLayers int,
	outSink io.Writer,
	shouldSucceed bool,
) (imageDigest string, err error)

BuildAndPushImageOfSizeWithDocker tries to build an image of wanted size and number of layers. It instructs Docker daemon directly. Built image is stored as an image stream tag <name>:<tag>. If shouldSucceed is false, a push is expected to fail with a denied error. Note the size is only approximate. Resulting image size will be different depending on used compression algorithm and metadata overhead.

func CheckPageContains added in v1.0.7

func CheckPageContains(oc *exutil.CLI, endpoint, path, contents string) (bool, error)

CheckPageContains makes a http request for an example application and checks that the result contains given string

func CreateMySQLReplicationHelpers added in v1.0.7

func CreateMySQLReplicationHelpers(c kclient.PodInterface, masterDeployment, slaveDeployment, helperDeployment string, slaveCount int) (exutil.Database, []exutil.Database, exutil.Database)

CreateMySQLReplicationHelpers creates a set of MySQL helpers for master, slave and an extra helper that is used for remote login test.

func CreatePostgreSQLReplicationHelpers added in v1.1.1

func CreatePostgreSQLReplicationHelpers(c kclient.PodInterface, masterDeployment, slaveDeployment, helperDeployment string, slaveCount int) (exutil.Database, []exutil.Database, exutil.Database)

CreatePostgreSQLReplicationHelpers creates a set of PostgreSQL helpers for master, slave an en extra helper that is used for remote login test.

func GetDockerRegistryURL added in v1.3.0

func GetDockerRegistryURL(oc *exutil.CLI) (string, error)

GetDockerRegistryURL returns a cluster URL of internal docker registry if available.

func GetImageLabels

func GetImageLabels(c client.ImageStreamImageInterface, imageRepoName, imageRef string) (map[string]string, error)

GetImageLabels retrieves Docker labels from image from image repository name and image reference

func GetTestCaseForImages added in v1.0.7

func GetTestCaseForImages(base ImageBaseType) map[string][]tc

func NewSampleRepoTest added in v1.0.7

func NewSampleRepoTest(c SampleRepoConfig) func()

NewSampleRepoTest creates a function for a new ginkgo test case that will instantiate a template from a url, kick off the buildconfig defined in that template, wait for the build/deploy, and then confirm the application is serving an expected string value.

func PostgreSQLReplicationTestFactory added in v1.1.1

func PostgreSQLReplicationTestFactory(oc *exutil.CLI, image string) func()

func RunInPodContainer added in v1.0.7

func RunInPodContainer(oc *exutil.CLI, selector labels.Selector, cmd []string) error

RunInPodContainer will run provided command in the specified pod container.

Types

type ImageBaseType added in v1.0.7

type ImageBaseType string
const (
	RHELBased   ImageBaseType = "rhel7"
	CentosBased ImageBaseType = "centos7"
	AllImages   ImageBaseType = "all"
)

type SampleRepoConfig added in v1.0.7

type SampleRepoConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL