You've already forked reposilite-charts
fix(gatewayAPI): add clientSettingsPolicy
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{{- if eq (include "reposilite.clientSettingsPolicy.enabled" $) "true" }}
|
||||
apiVersion: gateway.nginx.org/v1alpha1
|
||||
kind: ClientSettingsPolicy
|
||||
metadata:
|
||||
{{- with (include "reposilite.clientSettingsPolicy.annotations" . | fromYaml) }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with (include "reposilite.clientSettingsPolicy.labels" . | fromYaml) }}
|
||||
labels:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "reposilite.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
targetRef:
|
||||
group: gateway.networking.k8s.io
|
||||
kind: HTTPRoute
|
||||
name: {{ include "reposilite.fullname" . }}
|
||||
{{- if or .Values.gatewayAPI.nginx.clientSettingsPolicy.clientMaxBodySize
|
||||
.Values.gatewayAPI.nginx.clientSettingsPolicy.clientBodyTimeout
|
||||
}}
|
||||
body:
|
||||
{{- with .Values.gatewayAPI.nginx.clientSettingsPolicy.clientMaxBodySize }}
|
||||
maxSize: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.gatewayAPI.nginx.clientSettingsPolicy.clientBodyTimeout }}
|
||||
timeout: {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if or .Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveRequests
|
||||
.Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveTime
|
||||
.Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveTimeout
|
||||
.Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveMinTimeout
|
||||
}}
|
||||
keepAlive:
|
||||
{{- with .Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveRequests }}
|
||||
requests: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveTime }}
|
||||
time: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveTimeout }}
|
||||
timeout: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.gatewayAPI.nginx.clientSettingsPolicy.keepaliveMinTimeout }}
|
||||
minTimeout: {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user