Skip to content

Commit

Permalink
Updating registry-console image version during a post_control_plane u…
Browse files Browse the repository at this point in the history
…pgrade
  • Loading branch information
ewolinetz committed May 12, 2017
1 parent 3a8f805 commit 964fa7f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions playbooks/common/openshift-cluster/upgrades/post_control_plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
replace ( '${version}', openshift_image_tag ) }}"
router_image: "{{ openshift.master.registry_url | replace( '${component}', 'haproxy-router' ) |
replace ( '${version}', openshift_image_tag ) }}"
registry_console_image: "{{ openshift.master.registry_url | replace ( '${component}', 'registry-console') |
replace ( '${version}', openshift.common.short_version ) }}"

pre_tasks:
- name: Load lib_openshift modules
Expand Down Expand Up @@ -61,6 +63,26 @@
when:
- _default_registry.results.results[0] != {}

- name: Check for registry-console
oc_obj:
state: list
kind: dc
name: registry-console
register: _registry_console
when:
- openshift.common.deployment_type != 'origin'

- name: Update registry-console image to current version
oc_edit:
kind: dc
name: registry-console
namespace: default
content:
spec.template.spec.containers[0].image: "{{ registry_console_image }}"
when:
- openshift.common.deployment_type != 'origin'
- _registry_console.results.results[0] != {}

roles:
- openshift_manageiq
# Create the new templates shipped in 3.2, existing templates are left
Expand Down

0 comments on commit 964fa7f

Please sign in to comment.