Skip to content

Commit

Permalink
Merge pull request #249 from snyk/chore/deployment-from-image
Browse files Browse the repository at this point in the history
chore: instruct containers to sleep when creating a deployment from an image
  • Loading branch information
Amir Moualem authored Dec 4, 2019
2 parents e49d587 + be32708 commit b70712a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/kubectl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export async function applyK8sYaml(pathToYamlDeployment: string): Promise<void>

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

Expand Down

0 comments on commit b70712a

Please sign in to comment.