diff options
author | Samuel Padgett <spadgett@redhat.com> | 2018-01-18 16:03:42 -0500 |
---|---|---|
committer | Samuel Padgett <spadgett@redhat.com> | 2018-01-18 16:09:56 -0500 |
commit | f220b2a490851351d9c1db15945f2687b62df795 (patch) | |
tree | be15946ac0dcb0012cb70e8fd8a2a57a89a6f18c /roles/openshift_web_console/tasks/rollout_console.yml | |
parent | 1a2a895356df638756d2117e3d324710167737db (diff) | |
download | openshift-f220b2a490851351d9c1db15945f2687b62df795.tar.gz openshift-f220b2a490851351d9c1db15945f2687b62df795.tar.bz2 openshift-f220b2a490851351d9c1db15945f2687b62df795.tar.xz openshift-f220b2a490851351d9c1db15945f2687b62df795.zip |
Rollout console after template service broker install
The console will discover if the broker is running, but only on startup.
Trigger a rollout so that the console sees the change.
Diffstat (limited to 'roles/openshift_web_console/tasks/rollout_console.yml')
-rw-r--r-- | roles/openshift_web_console/tasks/rollout_console.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/openshift_web_console/tasks/rollout_console.yml b/roles/openshift_web_console/tasks/rollout_console.yml new file mode 100644 index 000000000..75682ba1d --- /dev/null +++ b/roles/openshift_web_console/tasks/rollout_console.yml @@ -0,0 +1,20 @@ +--- +- name: Check if console deployment exists + oc_obj: + kind: deployments + name: webconsole + namespace: openshift-web-console + state: list + register: console_deployment + +# There's currently no command to trigger a rollout for a k8s deployment +# without changing the pod spec. Add an annotation to force a rollout. +- name: Rollout updated web console deployment + oc_edit: + kind: deployments + name: webconsole + namespace: openshift-web-console + separator: '#' + content: + spec#template#metadata#annotations#installer-triggered-rollout: "{{ ansible_date_time.iso8601_micro }}" + when: console_deployment.results.results.0 | length > 0 |