Skip to content

Conversation

@AlinsRan
Copy link
Contributor

@AlinsRan AlinsRan commented Apr 21, 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:

export ADMIN_KEY=a7adm-MBHg7224Fwmm1iAqu2gYze9IcD5Gw3Dz08GhknyNE53a5NA5u9-f1242a45d7ae4953ab489562efafcb06
export ADMIN_ENDPOINT=https://172.18.0.3:7443                                                             
envsubst < examples/httpbin/quickstart.yaml | kubectl apply -f - 

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

@AlinsRan AlinsRan requested a review from Copilot April 21, 2025 07:45
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 refactors the httpbin example configurations by updating the controllerName values, adding a dedicated GatewayProxy resource with infrastructure configuration, and updating service timeout and host rewrite settings.

  • Updated controllerName to "gateway.apisix.io/api7-ingress-controller" in multiple example files.
  • Introduced a standalone GatewayProxy resource with ControlPlane and AdminKey configuration.
  • Added service-specific configurations for timeout and host rewrite.

Reviewed Changes

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

Show a summary per file
File Description
examples/httpbin/service-timeout.yaml Added BackendTrafficPolicy with timeout settings for the httpbin service.
examples/httpbin/service-rewrite-host.yaml Added BackendTrafficPolicy with passHost rewrite and upstreamHost configuration.
examples/httpbin/quickstart.yaml Updated the controllerName and added a GatewayProxy resource with infrastructure config.
examples/httpbin/ingress.yaml Defined GatewayProxy, IngressClass, and Ingress resources for traffic routing.
examples/httpbin/httproute.yaml Updated the controllerName and added GatewayProxy details in the routing config.
Comments suppressed due to low confidence (2)

examples/httpbin/quickstart.yaml:64

  • Ensure that the updated controllerName is consistent with the configuration expected by the deployed controller across all related example files.
controllerName: "gateway.apisix.io/api7-ingress-controller"

examples/httpbin/httproute.yaml:6

  • Verify that this change to the controllerName aligns with the overall configuration, ensuring consistency across the examples.
controllerName: "gateway.apisix.io/api7-ingress-controller"

metadata:
name: httpbin
spec:
# 解析到 upstream.nodes 当中
Copy link
Contributor

Choose a reason for hiding this comment

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

change to eng.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

metadata:
name: httpbin
spec:
# 解析到 upstream.nodes 当中
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

@AlinsRan AlinsRan merged commit c134251 into release-v2-dev Apr 21, 2025
6 of 8 checks passed
@AlinsRan AlinsRan deleted the chore/refactor-examples branch April 21, 2025 08:09
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