Closed jeremy-wl closed 5 years ago
/cc @kevinrizza @SamiSousa @galletti94
@jeremylinlin Could you provide more description of the problem you are attempting to solve in the actual commit message?
@jeremylinlin @galletti94 @SamiSousa Is this something we genuinely want to do? It seems like adding links to specific pages of documentation is going to be very difficult to maintain. What happens when those docs are updated (which happens relatively frequently). There is no real guarantee that these links will continue to be available. In theory we could link to specific commit versions of these docs, but then we aren't really guaranteed that those docs are accurate anymore.
IMO it seems like we need to solve the versioning/single source/all in one CLI problem before we can comfortably do something this complex. My suggestion is that we either punt this entirely, or just link very generally to the OLM or SDK repositories. And since it seems like the latter is not particularly useful, I would recommend the former.
@kevinrizza Or maybe I can add tests that check if the URLs are available or not, if not we just change it with the updated one?
@kevinrizza Or maybe I can add tests that check if the URLs are available or not, if not we just change it with the updated one?
It's not really enough that they are available. It's that the concepts match what we are describing in the links. Even then, that doesn't stop these links from breaking once someone installs this on their local.
Yeah I guess there's no effective way of handling those problems. Should I close this PR? @kevinrizza
@jeremylinlin: PR needs rebase.
@jeremylinlin I think it would just be simpler if we updated our readme with links to OLM's docs on creating CSVs and Operator-Registry's docs on Manifests
Closing the PR in favor of https://github.com/operator-framework/operator-courier/pull/115
Problem: Currently, whenever operator-courier encounters an error, it mentions if a field is missing/invalid but does not mention how to fix the error.
Solution: Add related document links to error messages so that courier users can learn more about error and how to fix it.
Below is how I categorize the error messages, and add one or more help urls to the error message. Please comment if my categorization needs to be improved, or better links can be used for some error messages. Then I will update it in the code accordingly.
No help URLs added
invalid_category
missing_owned_crd_field_in_csv
invalid_alm_examples
missing_field_for_operatorhub_io
csv_field_issue