Skip to content

Commit 4a413c0

Browse files
committed
fix: r
Signed-off-by: ashing <[email protected]>
1 parent 0f1b314 commit 4a413c0

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

api/v2/apisixconsumer_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ type ApisixConsumerBasicAuth struct {
8080
// Value specifies the basic authentication credentials.
8181
Value *ApisixConsumerBasicAuthValue `json:"value,omitempty" yaml:"value,omitempty"`
8282
}
83+
8384
// ApisixConsumerBasicAuthValue defines the username and password configuration for basic authentication.
8485
type ApisixConsumerBasicAuthValue struct {
8586
// Username is the basic authentication username.

api/v2/apisixroute_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ type ApisixRouteHTTP struct {
9191
Backends []ApisixRouteHTTPBackend `json:"backends,omitempty" yaml:"backends,omitempty"`
9292
// Upstreams references ApisixUpstream CRDs.
9393
Upstreams []ApisixRouteUpstreamReference `json:"upstreams,omitempty" yaml:"upstreams,omitempty"`
94-
94+
9595
// Websocket enables or disables websocket support for this route.
9696
// +kubebuilder:validation:Optional
9797
Websocket bool `json:"websocket" yaml:"websocket"`

api/v2/apisixupstream_types.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,28 +223,28 @@ type ActiveHealthCheck struct {
223223
// +kubebuilder:validation:Optional
224224
// +kubebuilder:validation:Enum=http;https;tcp;
225225
// Type is the health check type. Can be `http`, `https`, or `tcp`.
226-
Type string `json:"type,omitempty" yaml:"type,omitempty"`
226+
Type string `json:"type,omitempty" yaml:"type,omitempty"`
227227
// Timeout sets health check timeout in seconds.
228228
Timeout time.Duration `json:"timeout,omitempty" yaml:"timeout,omitempty"`
229229
// +kubebuilder:validation:Minimum=0
230230
// Concurrency sets the number of targets to be checked at the same time.
231-
Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`
231+
Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`
232232
// Host sets the upstream host.
233-
Host string `json:"host,omitempty" yaml:"host,omitempty"`
233+
Host string `json:"host,omitempty" yaml:"host,omitempty"`
234234
// +kubebuilder:validation:Minimum=0
235235
// +kubebuilder:validation:Maximum=65535
236236
// Port sets the upstream port.
237-
Port int32 `json:"port,omitempty" yaml:"port,omitempty"`
237+
Port int32 `json:"port,omitempty" yaml:"port,omitempty"`
238238
// HTTPPath sets the HTTP probe request path.
239-
HTTPPath string `json:"httpPath,omitempty" yaml:"httpPath,omitempty"`
239+
HTTPPath string `json:"httpPath,omitempty" yaml:"httpPath,omitempty"`
240240
// StrictTLS sets whether to enforce TLS.
241-
StrictTLS *bool `json:"strictTLS,omitempty" yaml:"strictTLS,omitempty"`
241+
StrictTLS *bool `json:"strictTLS,omitempty" yaml:"strictTLS,omitempty"`
242242
// RequestHeaders sets the request headers.
243-
RequestHeaders []string `json:"requestHeaders,omitempty" yaml:"requestHeaders,omitempty"`
243+
RequestHeaders []string `json:"requestHeaders,omitempty" yaml:"requestHeaders,omitempty"`
244244
// Healthy configures the rules that define an upstream node as healthy.
245-
Healthy *ActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"`
246-
// Unhealthy configures the rules that define an upstream node as unhealthy.
247-
Unhealthy *ActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"`
245+
Healthy *ActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"`
246+
// Unhealthy configures the rules that define an upstream node as unhealthy.
247+
Unhealthy *ActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"`
248248
}
249249

250250
// PassiveHealthCheck defines the conditions used to determine whether
@@ -303,7 +303,7 @@ type PassiveHealthCheckUnhealthy struct {
303303
// TCPFailures define the number of TCP failures to define an unhealthy target.
304304
TCPFailures int `json:"tcpFailures,omitempty" yaml:"tcpFailures,omitempty"`
305305
// Timeout sets health check timeout in seconds.
306-
Timeouts int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
306+
Timeouts int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
307307
}
308308

309309
func init() {

test/e2e/gatewayapi/httproute.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ metadata:
416416
name: httpbin-external-domain
417417
spec:
418418
type: ExternalName
419-
externalName: postman-echo.com
419+
externalName: httpbin.org
420420
---
421421
apiVersion: gateway.networking.k8s.io/v1
422422
kind: HTTPRoute
@@ -579,7 +579,7 @@ spec:
579579
GET("/get").
580580
WithHost("httpbin.external").
581581
Expect().
582-
Status(http.StatusMovedPermanently)
582+
Status(http.StatusOK)
583583
})
584584

585585
It("Match Port", func() {

test/e2e/ingress/ingress.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ metadata:
186186
name: httpbin-external-domain
187187
spec:
188188
type: ExternalName
189-
externalName: postman-echo.com
189+
externalName: httpbin.org
190190
---
191191
apiVersion: networking.k8s.io/v1
192192
kind: Ingress
@@ -253,7 +253,7 @@ spec:
253253
GET("/get").
254254
WithHost("httpbin.external").
255255
Expect().
256-
Status(http.StatusMovedPermanently)
256+
Status(http.StatusOK)
257257
})
258258

259259
It("Delete Ingress during restart", func() {
@@ -283,7 +283,7 @@ spec:
283283
GET("/get").
284284
WithHost("httpbin.external").
285285
Expect().
286-
Status(http.StatusMovedPermanently)
286+
Status(http.StatusOK)
287287

288288
s.NewAPISIXClient().
289289
GET("/get").
@@ -304,7 +304,7 @@ spec:
304304
GET("/get").
305305
WithHost("httpbin.external").
306306
Expect().
307-
Status(http.StatusMovedPermanently)
307+
Status(http.StatusOK)
308308

309309
s.NewAPISIXClient().
310310
GET("/get").

0 commit comments

Comments
 (0)