style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions
+3 -3
View File
@@ -129,14 +129,14 @@ apisix:
etcd:
host:
- "http://etcd:2379"
prefix: "/apisix"
- 'http://etcd:2379'
prefix: /apisix
timeout: 30
plugin_attr:
prometheus:
export_addr:
ip: "0.0.0.0"
ip: 0.0.0.0
port: 9091
```
+3 -3
View File
@@ -129,14 +129,14 @@ apisix:
etcd:
host:
- "http://etcd:2379"
prefix: "/apisix"
- 'http://etcd:2379'
prefix: /apisix
timeout: 30
plugin_attr:
prometheus:
export_addr:
ip: "0.0.0.0"
ip: 0.0.0.0
port: 9091
```
+8 -8
View File
@@ -4,16 +4,16 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
apisix:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}apache/apisix:${APISIX_VERSION:-3.13.0-debian}
ports:
- "${APISIX_HTTP_PORT_OVERRIDE:-9080}:9080"
- "${APISIX_HTTPS_PORT_OVERRIDE:-9443}:9443"
- "${APISIX_ADMIN_PORT_OVERRIDE:-9180}:9180"
- '${APISIX_HTTP_PORT_OVERRIDE:-9080}:9080'
- '${APISIX_HTTPS_PORT_OVERRIDE:-9443}:9443'
- '${APISIX_ADMIN_PORT_OVERRIDE:-9180}:9180'
volumes:
- apisix_logs:/usr/local/apisix/logs
@@ -36,7 +36,7 @@ services:
memory: ${APISIX_MEMORY_RESERVATION:-256M}
healthcheck:
test:
["CMD-SHELL", "curl -f http://localhost:9080/apisix/status || exit 1"]
[CMD-SHELL, 'curl -f http://localhost:9080/apisix/status || exit 1']
interval: 30s
timeout: 10s
retries: 3
@@ -46,7 +46,7 @@ services:
<<: *defaults
image: quay.io/coreos/etcd:${ETCD_VERSION:-v3.6.0}
ports:
- "${ETCD_CLIENT_PORT_OVERRIDE:-2379}:2379"
- '${ETCD_CLIENT_PORT_OVERRIDE:-2379}:2379'
volumes:
- etcd_data:/etcd-data
environment:
@@ -90,7 +90,7 @@ services:
cpus: ${ETCD_CPU_RESERVATION:-0.1}
memory: ${ETCD_MEMORY_RESERVATION:-128M}
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
test: [CMD, etcdctl, endpoint, health]
interval: 30s
timeout: 10s
retries: 3
@@ -101,7 +101,7 @@ services:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}apache/apisix-dashboard:${APISIX_DASHBOARD_VERSION:-3.0.1-alpine}
ports:
- "${APISIX_DASHBOARD_PORT_OVERRIDE:-9000}:9000"
- '${APISIX_DASHBOARD_PORT_OVERRIDE:-9000}:9000'
volumes:
- dashboard_conf:/usr/local/apisix-dashboard/conf
environment: