20 lines
501 B
YAML
20 lines
501 B
YAML
{{- if .Values.rateLimiting.enabled }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: ratelimit-config
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
|
data:
|
|
ingress.yaml: |
|
|
domain: ingress
|
|
descriptors:
|
|
{{- toYaml .Values.rateLimiting.descriptors.ingress | nindent 4 }}
|
|
|
|
private-ingress.yaml: |
|
|
domain: private-ingress
|
|
descriptors:
|
|
{{- toYaml .Values.rateLimiting.descriptors.privateIngress | nindent 4 }}
|
|
{{- end }}
|