Skip to content

Conversation

@kayx23
Copy link
Contributor

@kayx23 kayx23 commented May 9, 2025

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Update comments for CRD docs generation.

TODO: valid column

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2025

conformance test report

apiVersion: gateway.networking.k8s.io/v1
date: "2025-05-20T08:52:57Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
  contact: null
  organization: APISIX
  project: apisix-ingress-controller
  url: https://github.com/apache/apisix-ingress-controller.git
  version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
    result: partial
    skippedTests:
    - GatewaySecretInvalidReferenceGrant
    - GatewaySecretMissingReferenceGrant
    - HTTPRouteHTTPSListener
    - HTTPRouteInvalidCrossNamespaceBackendRef
    - HTTPRouteInvalidReferenceGrant
    - HTTPRoutePartiallyInvalidViaInvalidReferenceGrant
    - HTTPRouteReferenceGrant
    statistics:
      Failed: 0
      Passed: 26
      Skipped: 7
  name: GATEWAY-HTTP
  summary: Core tests partially succeeded with 7 test skips.

@kayx23 kayx23 marked this pull request as ready for review May 20, 2025 08:31
@ronething ronething requested a review from Copilot May 20, 2025 08:35
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 enriches CRD documentation by adding detailed descriptions for spec and individual fields across the API reference, YAML schemas, and Go type comments.

  • Expanded spec definitions in docs/crd/api.md for all CRD kinds
  • Added or refined field descriptions in config/crd/bases/*.yaml
  • Synchronized Go doc comments in api/v1alpha1/*_types.go with the YAML and markdown docs

Reviewed Changes

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

Show a summary per file
File Description
docs/crd/api.md Added detailed spec descriptions for each CRD kind
config/crd/bases/apisix.apache.org_pluginconfigs.yaml Defined spec and field descriptions for PluginConfig
config/crd/bases/apisix.apache.org_httproutepolicies.yaml Enhanced YAML docs with priority and vars descriptions
config/crd/bases/apisix.apache.org_gatewayproxies.yaml Added pluginMetadata, plugins, provider, and status docs
config/crd/bases/apisix.apache.org_consumers.yaml Documented credentials, gatewayRef, and plugin fields
config/crd/bases/apisix.apache.org_backendtrafficpolicies.yaml Added descriptions for load balancing, retries, timeouts, etc.
api/v1alpha1/pluginconfig_types.go Updated doc comments for PluginConfig and Plugin
api/v1alpha1/httproutepolicy_types.go Refined comments for HTTPRoutePolicySpec and Spec in the struct
api/v1alpha1/gatewayproxy_types.go Synchronized Go comments for GatewayProxy and related types
api/v1alpha1/consumer_types.go Added Go doc comments for ConsumerSpec, GatewayRef, Credential
api/v1alpha1/backendtrafficpolicy_types.go Updated comments for BackendTrafficPolicySpec and related types

Copy link
Contributor

@ronething ronething left a comment

Choose a reason for hiding this comment

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

lgtm

@kayx23 kayx23 merged commit f04b3f4 into release-v2-dev May 20, 2025
9 checks passed
@kayx23 kayx23 deleted the docs/update-desc branch May 20, 2025 10:30
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.

3 participants