Browse Source

Merge pull request #9607 from vrutkovs/registry-console-component

Set correct vars for registry console
OpenShift Merge Robot 6 years ago
parent
commit
8261b77366
1 changed files with 9 additions and 9 deletions
  1. 9 9
      roles/cockpit-ui/defaults/main.yml

+ 9 - 9
roles/cockpit-ui/defaults/main.yml

@@ -1,19 +1,19 @@
 ---
+l_os_cockpit_default_images_dict:
+  origin: 'docker.io/cockpit/${component}:${version}'
+  openshift-enterprise: 'registry.redhat.io/openshift3/ose-${component}:${version}'
+l_os_cockpit_default_images_default: "{{ l_os_cockpit_default_images_dict[openshift_deployment_type] }}"
+
 l_os_cockpit_image_version_dict:
   origin: 'latest'
   openshift-enterprise: "{{ openshift_image_tag }}"
 l_os_cockpit_image_version: "{{ l_os_cockpit_image_version_dict[openshift_deployment_type] }}"
 
-l_os_cockpit_image_format: "{{ l_os_non_standard_reg_url | regex_replace('${version}' | regex_escape, l_os_cockpit_image_version) }}"
-
-l_openshift_cockit_search_dict:
-  origin: "openshift/${component}"
-  openshift-enterprise: "ose-${component}"
-l_openshift_cockit_search: "{{ l_openshift_cockit_search_dict[openshift_deployment_type] }}"
-
 l_openshift_cockpit_replace_dict:
-  origin: "cockpit/kubernetes"
+  origin: "kubernetes"
   openshift-enterprise: "registry-console"
 l_openshift_cockpit_replace: "{{ l_openshift_cockpit_replace_dict[openshift_deployment_type] }}"
 
-openshift_cockpit_deployer_image: "{{ l_os_cockpit_image_format | regex_replace(l_openshift_cockit_search | regex_escape, l_openshift_cockpit_replace) }}"
+l_os_cockpit_image_url: "{{ oreg_url | default(l_os_cockpit_default_images_default) | regex_replace('${version}' | regex_escape, l_os_cockpit_image_version) }}"
+
+openshift_cockpit_deployer_image: "{{ l_os_cockpit_image_url | regex_replace('${component}' | regex_escape, l_openshift_cockpit_replace) }}"