This is an automated email from the ASF dual-hosted git repository.

zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 50d6026d fix: make ApisixRouteHTTPBackend support serivce name (#1096)
50d6026d is described below

commit 50d6026df3953f9005bdd6ce4055909d0b2e3310
Author: Jintao Zhang <[email protected]>
AuthorDate: Wed Jun 22 18:18:27 2022 +0800

    fix: make ApisixRouteHTTPBackend support serivce name (#1096)
---
 samples/deploy/crd/v1/ApisixRoute.yaml | 42 +++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 18 deletions(-)

diff --git a/samples/deploy/crd/v1/ApisixRoute.yaml 
b/samples/deploy/crd/v1/ApisixRoute.yaml
index eb57ccd8..d0684a33 100644
--- a/samples/deploy/crd/v1/ApisixRoute.yaml
+++ b/samples/deploy/crd/v1/ApisixRoute.yaml
@@ -182,9 +182,10 @@ spec:
                               type: string
                               minLength: 1
                             servicePort:
-                              type: integer
-                              minimum: 1
-                              maximum: 65535
+                              anyOf:
+                              - type: integer
+                              - type: string
+                              x-kubernetes-int-or-string: true
                             resolveGranularity:
                               type: string
                               enum: ["endpoint", "service"]
@@ -258,9 +259,10 @@ spec:
                             type: string
                             minLength: 1
                           servicePort:
-                            type: integer
-                            minimum: 1
-                            maximum: 65535
+                            anyOf:
+                            - type: integer
+                            - type: string
+                            x-kubernetes-int-or-string: true
                           resolveGranularity:
                             type: string
                             enum: ["endpoint", "service"]
@@ -443,9 +445,10 @@ spec:
                               type: string
                               minLength: 1
                             servicePort:
-                              type: integer
-                              minimum: 1
-                              maximum: 65535
+                              anyOf:
+                              - type: integer
+                              - type: string
+                              x-kubernetes-int-or-string: true
                             resolveGranularity:
                               type: string
                               enum: ["endpoint", "service"]
@@ -531,9 +534,10 @@ spec:
                             type: string
                             minLength: 1
                           servicePort:
-                            type: integer
-                            minimum: 1
-                            maximum: 65535
+                            anyOf:
+                            - type: integer
+                            - type: string
+                            x-kubernetes-int-or-string: true
                           resolveGranularity:
                             type: string
                             enum: ["endpoint", "service"]
@@ -716,9 +720,10 @@ spec:
                               type: string
                               minLength: 1
                             servicePort:
-                              type: integer
-                              minimum: 1
-                              maximum: 65535
+                              anyOf:
+                              - type: integer
+                              - type: string
+                              x-kubernetes-int-or-string: true
                             resolveGranularity:
                               type: string
                               enum: ["endpoint", "service"]
@@ -792,9 +797,10 @@ spec:
                             type: string
                             minLength: 1
                           servicePort:
-                            type: integer
-                            minimum: 1
-                            maximum: 65535
+                            anyOf:
+                            - type: integer
+                            - type: string
+                            x-kubernetes-int-or-string: true
                           resolveGranularity:
                             type: string
                             enum: ["endpoint", "service"]

Reply via email to