Skip to content

docs: audit and correct API documentation#47

Merged
chideat merged 2 commits intodocs-optimizefrom
update-valkey-examples
Sep 2, 2025
Merged

docs: audit and correct API documentation#47
chideat merged 2 commits intodocs-optimizefrom
update-valkey-examples

Conversation

@google-labs-jules
Copy link

Audited and corrected the API documentation in docs/api/. This addresses user feedback about the documentation being out of sync with the API definitions. The changes include removing sections for non-existent fields and correcting the types and names of several fields in the core types documentation.

This commit corrects several inconsistencies in the API documentation
under `docs/api/`.

The following changes were made:
- Removed sections from `v1alpha1-sentinel.md` and `v1alpha1-user.md`
  that were documenting structs not present in their respective APIs.
- Corrected several fields in `core-types.md` to match the Go type
  definitions, including fields in `Storage`, `InstanceAccess`,
  and `ValkeyNode`.

This ensures that the API documentation is accurate and consistent with
the underlying code.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback on specific files or sections of files. For any comments you don't want me to act on, just include `(aside)`.

PS: Responding to comments on the entire PR are not yet supported but coming soon.


For security, I will only act on instructions from the user who triggered this task for this pull request.

@chideat chideat changed the base branch from main to docs-optimize September 2, 2025 07:24
@chideat chideat marked this pull request as ready for review September 2, 2025 07:26
Copilot AI review requested due to automatic review settings September 2, 2025 07:26
@chideat chideat merged commit 70833d1 into docs-optimize Sep 2, 2025
1 of 2 checks passed
@chideat chideat deleted the update-valkey-examples branch September 2, 2025 07:26
Copy link
Contributor

Copilot AI left a 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 audits and corrects the API documentation to ensure it aligns with the actual API definitions. The changes address user feedback about documentation being out of sync by removing sections for non-existent fields and correcting field types and names.

  • Removed outdated Authorization and SentinelMonitorNode sections that don't exist in the API
  • Updated core types documentation with correct field names, types, and added missing fields
  • Corrected field types from concrete to pointer types and updated enum references

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/api/v1alpha1-user.md Removed non-existent Authorization section
docs/api/v1alpha1-sentinel.md Removed non-existent SentinelMonitorNode section
docs/api/core-types.md Updated field types, names, and added missing fields in multiple sections

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

| `loadBalancerSourceRanges` | []string | Source IP ranges for LoadBalancer |
| `annotations` | map[string]string | Service annotations |
| `nodePortSequence` | string | NodePort sequence assignment |
| `ipFamilyPrefer` | corev1.IPFamily | IP family preference (IPv4, IPv6) |
Copy link

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description mentions only IPv4 and IPv6, but the original documentation mentioned dual-stack support. If dual-stack is supported, the description should include it, or if it's no longer supported, this change is correct.

Suggested change
| `ipFamilyPrefer` | corev1.IPFamily | IP family preference (IPv4, IPv6) |
| `ipFamilyPrefer` | corev1.IPFamily | IP family preference (IPv4, IPv6, DualStack) |

Copilot uses AI. Check for mistakes.
Comment on lines +63 to +65
| `role` | NodeRole | Node role (master, replica, sentinel) |
| `ip` | string | Node IP address |
| `port` | int32 | Node port |
| `role` | NodeRole | Node role (master, slave, sentinel) |
| `port` | string | Node port |
Copy link

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The role description mentions 'master' while the original used 'slave' for replicas. Ensure this terminology change is consistent with the actual API enum values. Also, the port field changed from int32 to string - verify this type change is accurate.

Copilot uses AI. Check for mistakes.
| `ip` | string | Node IP address |
| `port` | int32 | Node port |
| `role` | NodeRole | Node role (master, slave, sentinel) |
| `port` | string | Node port |
Copy link

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The role description mentions 'master' while the original used 'slave' for replicas. Ensure this terminology change is consistent with the actual API enum values. Also, the port field changed from int32 to string - verify this type change is accurate.

Suggested change
| `port` | string | Node port |
| `port` | int32 | Node port |

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants