diff --git a/helm/api7ee-demo-k8s/templates/configmap-adc.yaml b/helm/api7ee-demo-k8s/templates/configmap-adc.yaml index a5a7bfc..0158877 100644 --- a/helm/api7ee-demo-k8s/templates/configmap-adc.yaml +++ b/helm/api7ee-demo-k8s/templates/configmap-adc.yaml @@ -126,15 +126,15 @@ data: key: {{ .apiKey }} {{- end }} {{- end }} +{{- if .Values.api7.plugins.logging.enabled }} # Global Rules global_rules: - {{- if .Values.api7.plugins.logging.enabled }} request-logging: plugins: http-logger: uri: {{ .Values.api7.plugins.logging.endpoint }} batch_max_size: {{ .Values.api7.plugins.logging.batchMaxSize | default 1000 }} inactive_timeout: {{ .Values.api7.plugins.logging.inactiveTimeout | default 5 }} - {{- end }} +{{- end }} {{- end }}