|
@@ -517,24 +517,28 @@
|
|
- _default_router.rc == 0
|
|
- _default_router.rc == 0
|
|
- "'false' in _scc.stdout"
|
|
- "'false' in _scc.stdout"
|
|
command: >
|
|
command: >
|
|
- {{ oc_cmd }} patch scc/privileged -p '{"allowHostPorts":true,"allowHostNetwork":true}' --loglevel=9
|
|
|
|
|
|
+ {{ oc_cmd }} patch scc/privileged -p
|
|
|
|
+ '{"allowHostPorts":true,"allowHostNetwork":true}' --api-version=v1
|
|
|
|
|
|
- name: Update deployment config to 1.0.4/3.0.1 spec
|
|
- name: Update deployment config to 1.0.4/3.0.1 spec
|
|
when: _default_router.rc == 0
|
|
when: _default_router.rc == 0
|
|
command: >
|
|
command: >
|
|
{{ oc_cmd }} patch dc/router -p
|
|
{{ oc_cmd }} patch dc/router -p
|
|
'{"spec":{"strategy":{"rollingParams":{"updatePercent":-10},"spec":{"serviceAccount":"router","serviceAccountName":"router"}}}}'
|
|
'{"spec":{"strategy":{"rollingParams":{"updatePercent":-10},"spec":{"serviceAccount":"router","serviceAccountName":"router"}}}}'
|
|
|
|
+ --api-version=v1
|
|
|
|
|
|
- name: Switch to hostNetwork=true
|
|
- name: Switch to hostNetwork=true
|
|
when: _default_router.rc == 0
|
|
when: _default_router.rc == 0
|
|
command: >
|
|
command: >
|
|
{{ oc_cmd }} patch dc/router -p '{"spec":{"template":{"spec":{"hostNetwork":true}}}}'
|
|
{{ oc_cmd }} patch dc/router -p '{"spec":{"template":{"spec":{"hostNetwork":true}}}}'
|
|
|
|
+ --api-version=v1
|
|
|
|
|
|
- name: Update router image to current version
|
|
- name: Update router image to current version
|
|
when: _default_router.rc == 0
|
|
when: _default_router.rc == 0
|
|
command: >
|
|
command: >
|
|
{{ oc_cmd }} patch dc/router -p
|
|
{{ oc_cmd }} patch dc/router -p
|
|
'{"spec":{"template":{"spec":{"containers":[{"name":"router","image":"{{ router_image }}"}]}}}}'
|
|
'{"spec":{"template":{"spec":{"containers":[{"name":"router","image":"{{ router_image }}"}]}}}}'
|
|
|
|
+ --api-version=v1
|
|
|
|
|
|
- name: Check for default registry
|
|
- name: Check for default registry
|
|
command: >
|
|
command: >
|
|
@@ -548,3 +552,4 @@
|
|
command: >
|
|
command: >
|
|
{{ oc_cmd }} patch dc/docker-registry -p
|
|
{{ oc_cmd }} patch dc/docker-registry -p
|
|
'{"spec":{"template":{"spec":{"containers":[{"name":"registry","image":"{{ registry_image }}"}]}}}}'
|
|
'{"spec":{"template":{"spec":{"containers":[{"name":"registry","image":"{{ registry_image }}"}]}}}}'
|
|
|
|
+ --api-version=v1
|