Skip to content

some left crd add description#6147

Merged
changluyi merged 1 commit intomasterfrom
add_descriptions_for_kubeovn_Crds
Jan 9, 2026
Merged

some left crd add description#6147
changluyi merged 1 commit intomasterfrom
add_descriptions_for_kubeovn_Crds

Conversation

@changluyi
Copy link
Copy Markdown
Collaborator

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

Fixes #(issue-number)

Signed-off-by: clyi <clyi@alauda.io>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. chart Helm Chart labels Jan 9, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @changluyi, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the self-documentation of Kube-OVN's Custom Resource Definitions. By adding comprehensive 'description' fields to a wide array of properties across VPC, Subnet, NAT, FIP, SNAT, DNAT, and IPPool CRDs, it makes the schema more understandable for users and developers. This enhancement will streamline the process of interacting with and managing Kube-OVN resources, reducing ambiguity and the need for external documentation lookups.

Highlights

  • CRD Schema Enhancement: Added missing 'description' fields to various properties across multiple Custom Resource Definitions (CRDs) to improve clarity and documentation.
  • VPC and Subnet Field Descriptions: Enhanced descriptions for fields like 'vpc', 'protocol', 'extraExternalSubnets', 'staticRoutes', 'policyRoutes', and 'vpcPeerings' within VPC and Subnet related CRDs.
  • Comprehensive Subnet Property Documentation: Provided detailed descriptions for numerous subnet properties including 'default', 'cidrBlock', 'namespaces', 'gateway', 'provider', network configurations, and various feature toggles.
  • NAT, FIP, SNAT, DNAT, and IPPool Descriptions: Added descriptive text to fields within NAT Gateway, Floating IP, SNAT, DNAT, and IPPool CRD specifications.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 20845648745

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 22.738%

Totals Coverage Status
Change from base Build 20839499706: 0.0%
Covered Lines: 12186
Relevant Lines: 53593

💛 - Coveralls

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to add descriptions to various fields in the Kube-OVN Custom Resource Definitions (CRDs). While adding documentation is a great improvement, many of the changes introduce a critical issue: duplicate description keys within the same property definition. This makes the YAML invalid for an OpenAPI schema, and applying these CRDs to a Kubernetes cluster will fail. I've left comments on each occurrence of this issue with a suggestion to fix it. Please review them carefully. In most cases, a more specific description already existed, and the newly added generic description seems to be incorrect for the context.

Comment on lines +42 to 44
description: VPC name for the subnet. Immutable after creation.
type: string
description: VPC name for the DNS service. This field is immutable after creation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the vpc field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the VpcDns resource.

                  type: string
                  description: VPC name for the DNS service. This field is immutable after creation.

Comment on lines +546 to 548
description: VPC name for the subnet. Immutable after creation.
type: string
description: VPC name for the NAT gateway. This field is immutable after creation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the vpc field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the VpcNatGateway resource.

                  type: string
                  description: VPC name for the NAT gateway. This field is immutable after creation.

Comment on lines +1108 to 1110
description: VPC name for the subnet. Immutable after creation.
type: string
description: VPC name for the egress gateway. This field is immutable after creation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the vpc field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the VpcEgressGateway resource.

                  type: string
                  description: VPC name for the egress gateway. This field is immutable after creation.

Comment on lines +1640 to 1642
description: Network protocol (IPv4, IPv6, or Dual). Immutable after creation.
type: string
description: Protocol type of the DNAT rule
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the protocol field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the IptablesDnatRule resource.

                  type: string
                  description: Protocol type of the DNAT rule

Comment on lines +1686 to 1688
description: Network protocol (IPv4, IPv6, or Dual). Immutable after creation.
type: string
description: Protocol type (TCP or UDP)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the protocol field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate here.

                  type: string
                  description: Protocol type (TCP or UDP)

Comment on lines +2477 to 2479
description: Network protocol (IPv4, IPv6, or Dual). Immutable after creation.
type: string
description: Protocol type configured in the DNAT rule
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the protocol field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the OvnDnatRule resource.

Suggested change
description: Network protocol (IPv4, IPv6, or Dual). Immutable after creation.
type: string
description: Protocol type configured in the DNAT rule
type: string
description: Protocol type configured in the DNAT rule

Comment on lines +2526 to 2528
description: Network protocol (IPv4, IPv6, or Dual). Immutable after creation.
type: string
description: Protocol type (TCP or UDP)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the protocol field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one.

Suggested change
description: Network protocol (IPv4, IPv6, or Dual). Immutable after creation.
type: string
description: Protocol type (TCP or UDP)
type: string
description: Protocol type (TCP or UDP)

Comment on lines +2530 to 2532
description: VPC name for the subnet. Immutable after creation.
type: string
description: VPC name. This field is immutable after creation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the vpc field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one.

Suggested change
description: VPC name for the subnet. Immutable after creation.
type: string
description: VPC name. This field is immutable after creation.
type: string
description: VPC name. This field is immutable after creation.

Comment on lines +2585 to 2589
description: List of namespaces associated with this subnet.
items:
type: string
type: array
description: List of namespaces that can use this VPC
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the namespaces field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the Vpc resource.

Suggested change
description: List of namespaces associated with this subnet.
items:
type: string
type: array
description: List of namespaces that can use this VPC
items:
type: string
type: array
description: List of namespaces that can use this VPC

Comment on lines +3401 to 3404
description: List of namespaces associated with this subnet.
type: array
x-kubernetes-list-type: set
description: Namespaces that can use this IP pool
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This change introduces a duplicate description key for the namespaces field, which is invalid in an OpenAPI schema. Please consolidate the descriptions into a single one. The existing description seems more appropriate for the IPPool resource.

Suggested change
description: List of namespaces associated with this subnet.
type: array
x-kubernetes-list-type: set
description: Namespaces that can use this IP pool
type: array
x-kubernetes-list-type: set
description: Namespaces that can use this IP pool

@changluyi changluyi requested review from SkalaNetworks and zbb88888 and removed request for SkalaNetworks January 9, 2026 08:29
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 9, 2026
@changluyi changluyi merged commit 5d0dec4 into master Jan 9, 2026
73 of 74 checks passed
@changluyi changluyi deleted the add_descriptions_for_kubeovn_Crds branch January 9, 2026 08:58
@SkalaNetworks
Copy link
Copy Markdown
Member

@changluyi
image
There's a bunch of descriptions that are duplicate if I'm not mistaken, and the last one is probably gonna have the override over your modifications

changluyi added a commit that referenced this pull request Jan 9, 2026
Signed-off-by: clyi <clyi@alauda.io>
changluyi added a commit that referenced this pull request Jan 9, 2026
Signed-off-by: clyi <clyi@alauda.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart Helm Chart lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants