Skip to content

Commit ce2d777

Browse files
authored
chore: add adc log level (#222)
1 parent 298ef0a commit ce2d777

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

charts/ingress-controller/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Ingress Controller for API7
2121
| adc.image.pullPolicy | string | `"IfNotPresent"` | |
2222
| adc.image.repository | string | `"ghcr.io/api7/adc"` | |
2323
| adc.image.tag | string | `"0.21.2"` | |
24+
| adc.logLevel | string | `"info"` | |
2425
| adc.resources | object | `{}` | |
2526
| adc.securityContext | object | `{}` | |
2627
| autoscaling.enabled | bool | `false` | |
@@ -37,7 +38,7 @@ Ingress Controller for API7
3738
| config.metricsAddr | string | `":8080"` | |
3839
| config.probeAddr | string | `":8081"` | |
3940
| config.provider.initSyncDelay | string | `"20m"` | |
40-
| config.provider.syncPeriod | string | `"0s"` | |
41+
| config.provider.syncPeriod | string | `"1h"` | |
4142
| config.provider.type | string | `"api7ee"` | |
4243
| config.secureMetrics | bool | `false` | |
4344
| deployment.affinity | object | `{}` | |

charts/ingress-controller/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ spec:
8080
value: "ingress"
8181
- name: ADC_EXPERIMENTAL_FEATURE_FLAGS
8282
value: "remote-state-file,parallel-backend-request"
83+
- name: ADC_INGRESS_LOG_LEVEL
84+
value: "{{ .Values.adc.logLevel }}"
8385
ports:
8486
- name: http-status
8587
containerPort: 3001

charts/ingress-controller/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ adc:
4040
repository: ghcr.io/api7/adc
4141
tag: "0.21.2"
4242
pullPolicy: IfNotPresent
43+
logLevel: "info"
4344
resources: {}
4445
securityContext: {}
4546

@@ -59,7 +60,7 @@ config:
5960
execADCTimeout: "15s"
6061
provider:
6162
type: "api7ee"
62-
syncPeriod: "0s"
63+
syncPeriod: "1h"
6364
initSyncDelay: "20m"
6465

6566
# Admission webhook configuration

0 commit comments

Comments
 (0)