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

Commit

Permalink
tests/e2e: force always pull in non kind-based deployment (#1849)
Browse files Browse the repository at this point in the history
OSM install sets `ImagePullPolicy` to `IfNotPresent` by default,
making quick test-update-test iterations not pull new tags if
the tag is already present in nodes (but not latest SHA).
  • Loading branch information
eduser25 authored Oct 15, 2020
1 parent 8ad438f commit 622a23e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ func (td *OsmTestData) InstallOSM(instOpts InstallOSMOpts) error {
)
}

if !td.kindCluster {
// Making sure the image is always pulled in registry-based testing
args = append(args, "--osm-image-pull-policy=Always")
}

if len(instOpts.containerRegistrySecret) != 0 {
args = append(args, "--container-registry-secret="+registrySecretName)
}
Expand Down

0 comments on commit 622a23e

Please sign in to comment.