Skip to content

Commit

Permalink
Change image name in e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
  • Loading branch information
alexander-demicev committed Sep 11, 2024
1 parent 5e6feae commit 03df172
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
uses: actions/checkout@v4.1.7
- name: Build an image
run: |
TAG=${{ github.sha }} ARCH=amd64 make docker-build
TAG=${{ github.sha }} make docker-build
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@062f2592684a31eb3aa050cc61e7ca1451cecd3d
with:
image-ref: 'ghcr.io/rancher/turtles-amd64:${{ github.sha }}'
image-ref: 'ghcr.io/rancher/turtles:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ NOTES := $(abspath $(TOOLS_BIN_DIR)/$(NOTES_BIN))

# Registry / images
TAG ?= dev
ARCH ?= $(shell go env GOARCH)
ARCH ?= linux/$(shell go env GOARCH)
ALL_ARCH = amd64 arm64
TARGET_PLATFORMS := linux/amd64,linux/arm64
MACHINE := rancher-turtles
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/specs/migrate_gitops_provv1_mgmtv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"time"

Expand Down Expand Up @@ -362,7 +361,7 @@ func MigrateToV3UsingGitOpsSpec(ctx context.Context, inputGetter func() MigrateT
BootstrapClusterProxy: input.BootstrapClusterProxy,
HelmBinaryPath: input.HelmBinaryPath,
Namespace: turtlesframework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: input.E2EConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-controllers"),
SkipCleanup: true,
Expand Down
4 changes: 1 addition & 3 deletions test/e2e/suites/chart-upgrade/chart_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ package chart_upgrade

import (
_ "embed"
"fmt"
"runtime"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -77,7 +75,7 @@ var _ = Describe("Chart upgrade functionality should work", Label(e2e.ShortTestL
BootstrapClusterProxy: setupClusterResult.BootstrapClusterProxy,
HelmBinaryPath: e2eConfig.GetVariable(e2e.HelmBinaryPathVar),
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: rtInput.AdditionalValues,
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suites/embedded-capi-disabled-v3/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -161,7 +160,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suites/embedded-capi-disabled/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -162,7 +161,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suites/import-gitops-v3/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -162,7 +161,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{
Expand Down
5 changes: 2 additions & 3 deletions test/e2e/suites/import-gitops/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -170,7 +169,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{},
Expand Down Expand Up @@ -201,7 +200,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{},
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suites/migrate-gitops/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -171,7 +170,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{},
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suites/update-labels/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -158,7 +157,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: framework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/suites/v2prov/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"fmt"
"path/filepath"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -160,7 +159,7 @@ var _ = BeforeSuite(func() {
TurtlesChartPath: e2eConfig.GetVariable(e2e.TurtlesPathVar),
CAPIProvidersYAML: e2e.CapiProviders,
Namespace: turtlesframework.DefaultRancherTurtlesNamespace,
Image: fmt.Sprintf("ghcr.io/rancher/turtles-e2e-%s", runtime.GOARCH),
Image: "ghcr.io/rancher/turtles-e2e",
Tag: e2eConfig.GetVariable(e2e.TurtlesVersionVar),
WaitDeploymentsReadyInterval: e2eConfig.GetIntervals(setupClusterResult.BootstrapClusterProxy.GetName(), "wait-controllers"),
AdditionalValues: map[string]string{},
Expand Down

0 comments on commit 03df172

Please sign in to comment.