Skip to content

Commit b70712a

Browse files
author
Amir Moualem
authored
Merge pull request #249 from snyk/chore/deployment-from-image
chore: instruct containers to sleep when creating a deployment from an image
2 parents e49d587 + be32708 commit b70712a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helpers/kubectl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function applyK8sYaml(pathToYamlDeployment: string): Promise<void>
5656

5757
export async function createDeploymentFromImage(name: string, image: string, namespace: string) {
5858
console.log(`Letting Kubernetes decide how to manage image ${image} with name ${name}`);
59-
await exec(`./kubectl run ${name} --image=${image} -n ${namespace}`);
59+
await exec(`./kubectl run ${name} --image=${image} -n ${namespace} -- sleep 999999999`);
6060
console.log(`Done Letting Kubernetes decide how to manage image ${image} with name ${name}`);
6161
}
6262

0 commit comments

Comments
 (0)