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:
parent
58b30cf3d3
commit
143dd5eecc
|
@ -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": {
|
||||
|
|
|
@ -8,6 +8,7 @@ class TestDeploy(base.TestCase):
|
|||
container = {
|
||||
"name": "name_foo",
|
||||
"image": "image_foo",
|
||||
"imagePullPolicy": "Always",
|
||||
"command": "command_foo",
|
||||
"cm_version": 1,
|
||||
"env": [{
|
||||
|
@ -29,6 +30,7 @@ class TestDeploy(base.TestCase):
|
|||
expected = {
|
||||
"name": "name_foo",
|
||||
"image": "ccp/image_foo:latest",
|
||||
"imagePullPolicy": "Always",
|
||||
"command": [
|
||||
"dumb-init",
|
||||
"/usr/bin/python",
|
||||
|
|
Loading…
Reference in New Issue