Skip to content

Commit

Permalink
Merge pull request openshift#4155 from ewolinetz/registry_console_upg…
Browse files Browse the repository at this point in the history
…rade

Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored May 13, 2017
2 parents 7eae685 + 964fa7f commit adb878d
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 adb878d

Please sign in to comment.