Repository navigation
Conversation
To cover the cluster-version operator <-> second-level operator interactions. Move the previous operator-dev-doc down into this document as a README, and drop a symlink in the old location for backwards-compat with existing linkers.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wking The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Keeping the urls out of message into specific API fields means they are going to be consumed as an API. If there isn't any known automation planned there is diminished returns for this.. imo Can we explain how that helps as an alternative to just keeping the links in the message itself |
Creating a framework so we can do a better job pointing cluster admins at context, impact, and mitigations for any surprising operator conditions.
What our our existing condition consumers? Some of this ends up in alerts, where the links may be useful (local cluster stuff) or not (shipping them up in Insights bundles, where we already know about the links). Then there are folks who parse ClusterVersion and ClusterOperator status directly, and they're already dealing with this as a structured API. And then there's the web console, doing what it does. I think the web-console would be the main consumer of this information.
I tried to cover that in the alternatives section. I'm personally fine if we went with the "messages are Markdown" approach, although it would be some work to validate that assertion in CI (for any conditions we happened to see pass by during an e2e run?). Or we could just assume everyone got the Markdown right and patch on a case-by-case basis when folks noticed mistakes. I'm less excited about the "links in freeform messages" alternative, because... then how does the console decide to render them? Just make live links for anything that matches some link heuristic? We'd have similar issues in CI if we decided to try and require surprising conditions to include a doc link. Did you have other "link from the message" alternatives besides those two to consider? |
| ## Open Questions | ||
|
|
||
| Are there restrictions on URI targets? | ||
| Do they all need to point at either docs.openshift.com or Knowledgebase articles? |
There was a problem hiding this comment.
IMO yes we should have restrict it to couple of places. The URLs should be under control of Red Hat as we do not want customers to go to any unavailable URL. Also we should not have to sen a PR to fix a doc URL because Kubernetes (or any external website) has changed the location of the document. The only challenge with knowledge base articles is that customers without subscription will not be able to access it. Which is bad from OKD point of view.
There was a problem hiding this comment.
So you would require links to target any RH-controlled site? Or restrict to a subset of those? Do you count GitHub repos with RH maintainers as RH-controlled?
Do you have suggestions for supporting OKD? My fuzzy impression is that Knowledgebase articles can be set public, but we could also require folks to put these in Bugzilla comments or something if I'm misremembering.
| Do we require these doc links? | ||
| Some messages may be sufficient without links, in which case creating a doc-link may be busywork. | ||
| On the other hand, even relatively straightforward stuff like [`VersionNotFound`][version-not-found] could benefit from a few lines of context, which is more than we want to bake into the message string itself. | ||
| Deciding this might benefit from a survey of conditions collected in Insights. |
There was a problem hiding this comment.
If the issue can be explained without a document URL link that would be better. So I wont suggest making the doc links compulsory.
There was a problem hiding this comment.
If the issue can be explained without a document URL link that would be better.
Do you have an example of a surprising condition (Degraded=True, Upgradeable=False) that you think can be explained without a document URI? Can you paste it in here so we can kick around whether we think it is sufficient on its own? I'm personally skeptical that we have any URI-less messages that cover the reason the condition is firing, the expected impact of the condition, and suggested mitigations.
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
|
@openshift-bot: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Creating a framework so we can do a better job pointing cluster admins at context, impact, and mitigations for any surprising operator conditions.