Force imagePullPolicy to Always

Right now it's defaults to Always if :latest tag is
specified, or IfNotPresent otherwise. Which very confusing,
especialy if you switch from :latest to some tag and wonder
why your images are not updated.

Change-Id: I2cdc0817c2b4e8c95993b5eae44ffff26acd7662
This commit is contained in:
Proskurin Kirill
2016-11-15 17:58:42 +00:00
parent 58b30cf3d3
commit 143dd5eecc
2 changed files with 3 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ def serialize_daemon_container_spec(container):
cont_spec = {
"name": container["name"],
"image": images.image_spec(container["image"]),
"imagePullPolicy": "Always",
"command": _get_start_cmd(container["name"]),
"volumeMounts": serialize_volume_mounts(container),
"readinessProbe": {