From 022cf67ea6be52ee46bb52aa6e78b9690698dc2e Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 19 Jun 2017 17:35:34 +0200 Subject: Add suggestion to check disk space in any path --- .../openshift_health_checker/openshift_checks/disk_availability.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/openshift_health_checker/openshift_checks/disk_availability.py b/roles/openshift_health_checker/openshift_checks/disk_availability.py index 2c4642352..638201495 100644 --- a/roles/openshift_health_checker/openshift_checks/disk_availability.py +++ b/roles/openshift_health_checker/openshift_checks/disk_availability.py @@ -66,7 +66,11 @@ class DiskAvailability(NotContainerizedMixin, OpenShiftCheck): # If it is not a number, then it should be a nested dict. pass - + # TODO: as suggested in + # https://github.com/openshift/openshift-ansible/pull/4436#discussion_r122180021, + # maybe we could support checking disk availability in paths that are + # not part of the official recommendation but present in the user + # configuration. for path, recommendation in self.recommended_disk_space_bytes.items(): free_bytes = self.free_bytes(path, ansible_mounts) recommended_bytes = max(recommendation.get(name, 0) for name in group_names) -- cgit v1.2.3