Skip to content

Commit

Permalink
revert --image-pull-policy=IfNotPresent for win (Azure#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Aug 3, 2018
1 parent e61af95 commit 98b7b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/kubernetes/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func RunLinuxDeploy(image, name, namespace, command string, replicas int) (*Depl
// CreateWindowsDeploy will crete a deployment for a given image with a name in a namespace
func CreateWindowsDeploy(image, name, namespace string, port int, hostport int) (*Deployment, error) {
overrides := `{ "apiVersion": "extensions/v1beta1", "spec":{"template":{"spec": {"nodeSelector":{"beta.kubernetes.io/os":"windows"}}}}}`
cmd := exec.Command("kubectl", "run", name, "-n", namespace, "--image", "--image-pull-policy=IfNotPresent", image, "--port", strconv.Itoa(port), "--hostport", strconv.Itoa(hostport), "--overrides", overrides)
cmd := exec.Command("kubectl", "run", name, "-n", namespace, "--image", image, "--port", strconv.Itoa(port), "--hostport", strconv.Itoa(hostport), "--overrides", overrides)
out, err := util.RunAndLogCommand(cmd)
if err != nil {
log.Printf("Error trying to deploy %s [%s] in namespace %s:%s\n", name, image, namespace, string(out))
Expand Down

0 comments on commit 98b7b4e

Please sign in to comment.