Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #301 from weaveworks/tidy-image-in-test
Browse files Browse the repository at this point in the history
Tidy the CAPEI image name used in multimaster_test
  • Loading branch information
bboreham committed Sep 24, 2020
2 parents dcb3b3e + c19cc67 commit fdd6107
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration/container/multimaster_test.go
Expand Up @@ -368,10 +368,10 @@ func TestMultimasterSetup(t *testing.T) {
if shouldRetagPush(t, registryPort) {
run(t, "../../../environments/local-docker-registry/retag_push.sh", "-p", strconv.Itoa(registryPort))
}
// TODO: Use CAPEI upstream when its build system has been set up
run(t, "docker", "pull", "weaveworks/cluster-api-existinginfra-controller:v0.0.2")
run(t, "docker", "tag", fmt.Sprintf("weaveworks/cluster-api-existinginfra-controller:%s", "v0.0.2"), fmt.Sprintf("localhost:%d/weaveworks/wksctl-controller:%s", registryPort, tag))
run(t, "docker", "push", fmt.Sprintf("localhost:%d/weaveworks/wksctl-controller:%s", registryPort, tag))
const capeiImage = "weaveworks/cluster-api-existinginfra-controller:v0.0.2"
run(t, "docker", "pull", capeiImage)
run(t, "docker", "tag", capeiImage, fmt.Sprintf("localhost:%d/%s", registryPort, capeiImage))
run(t, "docker", "push", fmt.Sprintf("localhost:%d/%s", registryPort, capeiImage))
registryIP = sanitizeIP(run(t, "docker", "inspect", "registry", "--format='{{.NetworkSettings.IPAddress}}'"))

// Ensure the local YUM repo is running:
Expand Down Expand Up @@ -422,7 +422,7 @@ func TestMultimasterSetup(t *testing.T) {
fmt.Sprintf("--cluster=%s", clusterYAML), fmt.Sprintf("--machines=%s", machinesYAML),
fmt.Sprintf("--config-directory=%s", dirName),
"--verbose",
fmt.Sprintf("--controller-image=docker.io/weaveworks/wksctl-controller:%s", tag))
fmt.Sprintf("--controller-image=%s", capeiImage))

out := run(t, "../../../cmd/wksctl/wksctl", "kubeconfig",
fmt.Sprintf("--cluster=%s", clusterYAML), fmt.Sprintf("--machines=%s", machinesYAML))
Expand Down

0 comments on commit fdd6107

Please sign in to comment.