Skip to content

Commit 8988472

Browse files
chore: Set pull policy 'Never' for 'local' img tag.
Bug fix for when running tests locally, the 'snyk/kubernetes-monitor:local' image is already loaded into the cluster so we should not be pulling from the registry.
1 parent 5b0cde1 commit 8988472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/setup/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function deployMonitor(): Promise<string> {
133133
await predeploy(integrationId);
134134

135135
// TODO: hack, rewrite this
136-
const imagePullPolicy = testPlatform === 'kind' ? 'Never' : 'Always';
136+
const imagePullPolicy = testPlatform === 'kind' || testPlatform === 'openshift3' ? 'Never' : 'Always';
137137
const deploymentImageOptions: IImageOptions = {
138138
nameAndTag: remoteImageName,
139139
pullPolicy: imagePullPolicy,

0 commit comments

Comments
 (0)