-
Notifications
You must be signed in to change notification settings - Fork 2
Add documentation for Operation Cache Controller and related components #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces comprehensive documentation for the Operation Cache Controller and related components, enhancing clarity around command usage, sequence flows, and CRD specifications.
- Adds detailed Mermaid sequence diagrams for Cache, Operation, AppDeployment, and Requirement controllers.
- Provides updated YAML examples for Job CR specifications and client command usage.
- Updates overall architectural context and interactions in the overview documentation.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| doc/arch/5-cache-controller.md | Added sequence diagrams for cache controller flows. |
| doc/arch/4-appdeployment-controller.md | Added diagrams for provisioning/teardown and Job CR specs. |
| doc/arch/3-operation-controller.md | Added operation controller sequences for reconcile/finalize. |
| doc/arch/2-requirement-controller.md | Added sequence diagrams covering cache hit and miss flows. |
| doc/arch/1-client.md | Provided usage examples and a sequence diagram for deployctl. |
| doc/arch/0-overview.md | Updated context diagrams and detailed CRD specifications. |
Comments suppressed due to low confidence (1)
doc/arch/0-overview.md:6
- Correct 'Pre-Provsion' to 'Pre-Provision'.
Pre-Provsion the resources for future use(Cache).
|
|
||
| ## Spec for Job CR | ||
|
|
||
| ### Provsion Job |
Copilot
AI
May 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the spelling from 'Provsion Job' to 'Provision Job'.
| ### Provsion Job | |
| ### Provision Job |
| participant k8s | ||
|
|
||
| user ->>+ ctl: deployctl create -f <path-to-yaml-file> | ||
| ctl ->>+ k8s: Check if cache CR for exist |
Copilot
AI
May 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the phrase to 'Check if cache CR exists' for improved grammar and clarity.
| ctl ->>+ k8s: Check if cache CR for exist | |
| ctl ->>+ k8s: Check if cache CR exists |
|
|
||
| The detailed interaction of Operation Cache Controller components is as follows: | ||
|
|
||
| - The Operation Cache controller comsumes Requirement CRD and return the Operation ID which is used to indicate the resources are provisioned. |
Copilot
AI
May 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct 'comsumes' to 'consumes' and consider changing 'return' to 'returns' for grammatical accuracy.
| - The Operation Cache controller comsumes Requirement CRD and return the Operation ID which is used to indicate the resources are provisioned. | |
| - The Operation Cache controller consumes Requirement CRD and returns the Operation ID which is used to indicate the resources are provisioned. |
Introduce comprehensive documentation for the Operation Cache Controller, including command usage, sequence diagrams for various operations, and specifications for job configurations. This enhances understanding and usability of the components involved.