code: function() {
      window.OPENSHIFT_CONFIG.api.k8s.resources = api.k8s;
      window.OPENSHIFT_CONFIG.api.openshift.resources = api.openshift;
      window.OPENSHIFT_CONFIG.apis.groups = apis;
      if (API_DISCOVERY_ERRORS.length) {
        window.OPENSHIFT_CONFIG.apis.API_DISCOVERY_ERRORS = API_DISCOVERY_ERRORS;
      }
      next();
    }
docs: Will be called on success or failure