scale-catalog/premium/traefik/27.0.14/templates/middlewares/bouncer.yaml
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

113 lines
3.7 KiB
YAML

{{- range $index, $middlewareData := .Values.middlewares.bouncer }}
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: {{ ternary (printf "%v-%v" $.Release.Name $middlewareData.name) $middlewareData.name $.Values.ingressClass.enabled }}
namespace: {{ $.Release.Namespace }}
spec:
plugin:
bouncer:
{{- with $middlewareData.enabled }}
enabled: {{ . }}
{{- end }}
{{- with $middlewareData.logLevel }}
logLevel: {{ . }}
{{- end }}
{{- with $middlewareData.updateIntervalSeconds }}
updateIntervalSeconds: {{ . }}
{{- end }}
{{- with $middlewareData.defaultDecisionSeconds }}
defaultDecisionSeconds: {{ . }}
{{- end }}
{{- with $middlewareData.httpTimeoutSeconds }}
httpTimeoutSeconds: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecMode }}
crowdsecMode: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecAppsecEnabled }}
crowdsecAppsecEnabled: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecAppsecHost }}
crowdsecAppsecHost: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecAppsecFailureBlock }}
crowdsecAppsecFailureBlock: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiKey }}
crowdsecLapiKey: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiKeyFile }}
crowdsecLapiKeyFile: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiHost }}
crowdsecLapiHost: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiScheme }}
crowdsecLapiScheme: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSInsecureVerify }}
crowdsecLapiTLSInsecureVerify: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecCapiMachineId }}
crowdsecCapiMachineId: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecCapiPassword }}
crowdsecCapiPassword: {{ . }}
{{- end }}
{{- if $middlewareData.crowdsecCapiScenarios }}
crowdsecCapiScenarios:
{{- range $middlewareData.crowdsecCapiScenarios }}
- {{ . }}
{{- end }}
{{- end }}
{{- if $middlewareData.forwardedHeadersTrustedIPs }}
forwardedHeadersTrustedIPs:
{{- range $middlewareData.forwardedHeadersTrustedIPs }}
- {{ . }}
{{- end }}
{{- end }}
{{- if $middlewareData.clientTrustedIPs }}
clientTrustedIPs:
{{- range $middlewareData.clientTrustedIPs }}
- {{ . }}
{{- end }}
{{- end }}
{{- with $middlewareData.forwardedHeadersCustomName }}
forwardedHeadersCustomName: {{ . }}
{{- end }}
{{- with $middlewareData.redisCacheEnabled }}
redisCacheEnabled: {{ . }}
{{- end }}
{{- with $middlewareData.redisCacheHost }}
redisCacheHost: {{ . }}
{{- end }}
{{- with $middlewareData.redisCachePassword }}
redisCachePassword: {{ . }}
{{- end }}
{{- with $middlewareData.redisCacheDatabase }}
redisCacheDatabase: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSCertificateAuthority }}
crowdsecLapiTLSCertificateAuthority: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSCertificateAuthorityFile }}
crowdsecLapiTLSCertificateAuthorityFile: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSCertificateBouncer }}
crowdsecLapiTLSCertificateBouncer: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSCertificateBouncerFile }}
crowdsecLapiTLSCertificateBouncerFile: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSCertificateBouncerKey }}
crowdsecLapiTLSCertificateBouncerKey: {{ . }}
{{- end }}
{{- with $middlewareData.crowdsecLapiTLSCertificateBouncerKeyFile }}
crowdsecLapiTLSCertificateBouncerKeyFile: {{ . }}
{{- end }}
{{- end }}