summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-09-12 11:07:12 -0400
committerMichael Gugino <mgugino@redhat.com>2017-09-20 13:04:03 -0400
commit4b8f66c37b865c7be59310854f5f9bd3de3e01bb (patch)
tree0de1cd2d6b8710503e7f2a1dc6c8fa1271b46ca6 /roles/openshift_health_checker/openshift_checks
parentaf580f808d78667bde54b88d4c33fca493828945 (diff)
downloadopenshift-4b8f66c37b865c7be59310854f5f9bd3de3e01bb.tar.gz
openshift-4b8f66c37b865c7be59310854f5f9bd3de3e01bb.tar.bz2
openshift-4b8f66c37b865c7be59310854f5f9bd3de3e01bb.tar.xz
openshift-4b8f66c37b865c7be59310854f5f9bd3de3e01bb.zip
Cleanup old deployment types
Previously, openshift-ansible supported various types of deployments using the variable "openshift_deployment_type" Currently, openshift-ansible only supports two deployment types, "origin" and "openshift-enterprise". This commit removes all logic and references to deprecated deployment types.
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks')
-rw-r--r--roles/openshift_health_checker/openshift_checks/docker_image_availability.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/docker_image_availability.py b/roles/openshift_health_checker/openshift_checks/docker_image_availability.py
index 9c35f0f92..98372d979 100644
--- a/roles/openshift_health_checker/openshift_checks/docker_image_availability.py
+++ b/roles/openshift_health_checker/openshift_checks/docker_image_availability.py
@@ -109,8 +109,6 @@ class DockerImageAvailability(DockerHostMixin, OpenShiftCheck):
# containerized etcd may not have openshift_image_tag, see bz 1466622
image_tag = self.get_var("openshift_image_tag", default="latest")
image_info = DEPLOYMENT_IMAGE_INFO[deployment_type]
- if not image_info:
- return required
# template for images that run on top of OpenShift
image_url = "{}/{}-{}:{}".format(image_info["namespace"], image_info["name"], "${component}", "${version}")
@@ -160,7 +158,7 @@ class DockerImageAvailability(DockerHostMixin, OpenShiftCheck):
deployment_type = self.get_var("openshift_deployment_type")
if deployment_type == "origin" and "docker.io" not in regs:
regs.append("docker.io")
- elif "enterprise" in deployment_type and "registry.access.redhat.com" not in regs:
+ elif deployment_type == 'openshift-enterprise' and "registry.access.redhat.com" not in regs:
regs.append("registry.access.redhat.com")
return regs