From 4457df1036054ccddac574b00ec3da801a33523a Mon Sep 17 00:00:00 2001 From: ashing Date: Tue, 24 Jun 2025 16:53:15 +0800 Subject: [PATCH] chore: yaml lint files Signed-off-by: ashing --- examples/httpbin/deployment.yaml | 8 ++--- examples/httpbin/httproute.yaml | 26 ++++++++-------- examples/httpbin/ingress.yaml | 22 ++++++------- examples/httpbin/quickstart.yaml | 36 +++++++++++----------- examples/httpbin/service-rewrite-host.yaml | 6 ++-- examples/httpbin/service-timeout.yaml | 6 ++-- 6 files changed, 52 insertions(+), 52 deletions(-) diff --git a/examples/httpbin/deployment.yaml b/examples/httpbin/deployment.yaml index 005e9d9fb..5b44f60cb 100644 --- a/examples/httpbin/deployment.yaml +++ b/examples/httpbin/deployment.yaml @@ -48,8 +48,8 @@ spec: selector: app: httpbin-deployment ports: - - name: http - port: 80 - protocol: TCP - targetPort: 80 + - name: http + port: 80 + protocol: TCP + targetPort: 80 type: ClusterIP diff --git a/examples/httpbin/httproute.yaml b/examples/httpbin/httproute.yaml index b789b2dc4..7728eb7f0 100644 --- a/examples/httpbin/httproute.yaml +++ b/examples/httpbin/httproute.yaml @@ -16,7 +16,7 @@ spec: type: ControlPlane controlPlane: endpoints: - - ${ADMIN_ENDPOINT} # https://127.0.0.1:7443 + - ${ADMIN_ENDPOINT} # https://127.0.0.1:7443 auth: type: AdminKey adminKey: @@ -31,9 +31,9 @@ metadata: spec: gatewayClassName: apisix listeners: - - name: http - protocol: HTTP - port: 80 + - name: http + protocol: HTTP + port: 80 infrastructure: parametersRef: group: apisix.apache.org @@ -48,14 +48,14 @@ metadata: name: httpbin spec: parentRefs: - - name: apisix + - name: apisix hostnames: - - httpbin.example.com + - httpbin.example.com rules: - - matches: - - path: - type: PathPrefix - value: /* - backendRefs: - - name: httpbin - port: 80 + - matches: + - path: + type: PathPrefix + value: /* + backendRefs: + - name: httpbin + port: 80 diff --git a/examples/httpbin/ingress.yaml b/examples/httpbin/ingress.yaml index 9e6b226a5..a3bc13d69 100644 --- a/examples/httpbin/ingress.yaml +++ b/examples/httpbin/ingress.yaml @@ -8,7 +8,7 @@ spec: type: ControlPlane controlPlane: endpoints: - - ${ADMIN_ENDPOINT} # https://127.0.0.1:7443 + - ${ADMIN_ENDPOINT} # https://127.0.0.1:7443 auth: type: AdminKey adminKey: @@ -38,13 +38,13 @@ metadata: spec: ingressClassName: apisix rules: - - host: httpbin.example.com - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: httpbin - port: - number: 80 + - host: httpbin.example.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: httpbin + port: + number: 80 diff --git a/examples/httpbin/quickstart.yaml b/examples/httpbin/quickstart.yaml index 36efed055..abd55cebf 100644 --- a/examples/httpbin/quickstart.yaml +++ b/examples/httpbin/quickstart.yaml @@ -48,13 +48,13 @@ spec: selector: app: httpbin-deployment ports: - - name: http - port: 80 - protocol: TCP - targetPort: 80 + - name: http + port: 80 + protocol: TCP + targetPort: 80 type: ClusterIP ---- +--- apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass @@ -74,7 +74,7 @@ spec: type: ControlPlane controlPlane: endpoints: - - ${ADMIN_ENDPOINT} # https://127.0.0.1:7443 + - ${ADMIN_ENDPOINT} # https://127.0.0.1:7443 auth: type: AdminKey adminKey: @@ -89,9 +89,9 @@ metadata: spec: gatewayClassName: apisix listeners: - - name: http - protocol: HTTP - port: 80 + - name: http + protocol: HTTP + port: 80 infrastructure: parametersRef: group: apisix.apache.org @@ -106,14 +106,14 @@ metadata: name: httpbin spec: parentRefs: - - name: apisix + - name: apisix hostnames: - - httpbin.example.com + - httpbin.example.com rules: - - matches: - - path: - type: PathPrefix - value: /* - backendRefs: - - name: httpbin - port: 80 + - matches: + - path: + type: PathPrefix + value: /* + backendRefs: + - name: httpbin + port: 80 diff --git a/examples/httpbin/service-rewrite-host.yaml b/examples/httpbin/service-rewrite-host.yaml index e5bf0136e..731b16c51 100644 --- a/examples/httpbin/service-rewrite-host.yaml +++ b/examples/httpbin/service-rewrite-host.yaml @@ -4,8 +4,8 @@ metadata: name: httpbin spec: targetRefs: - - name: httpbin - kind: Service - group: "" + - name: httpbin + kind: Service + group: "" passHost: rewrite upstreamHost: httpbin.example.com diff --git a/examples/httpbin/service-timeout.yaml b/examples/httpbin/service-timeout.yaml index a7da94db8..f926536df 100644 --- a/examples/httpbin/service-timeout.yaml +++ b/examples/httpbin/service-timeout.yaml @@ -4,9 +4,9 @@ metadata: name: httpbin spec: targetRefs: - - name: httpbin - kind: Service - group: "" + - name: httpbin + kind: Service + group: "" timeout: send: 10s read: 10s