readd portalhook
This commit is contained in:
@@ -22,4 +22,4 @@ sources:
|
|||||||
- https://github.com/traefik/traefik-helm-chart
|
- https://github.com/traefik/traefik-helm-chart
|
||||||
- https://traefik.io/
|
- https://traefik.io/
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.7
|
version: 0.0.8
|
||||||
|
|||||||
@@ -176,3 +176,6 @@ serviceAccount:
|
|||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: [ALL]
|
drop: [ALL]
|
||||||
|
|
||||||
|
portalhook:
|
||||||
|
enabled: true
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{{- if .Values.portalhook.enabled }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "traefikmiddlewares" }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: portalhook
|
||||||
|
namespace: $namespace
|
||||||
|
data:
|
||||||
|
{{- $ports := dict }}
|
||||||
|
{{- range $.Values.service }}
|
||||||
|
{{- range $name, $value := .ports }}
|
||||||
|
{{- $_ := set $ports $name $value }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $name, $value := $ports }}
|
||||||
|
{{ $name }}: {{ $value.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -319,3 +319,6 @@ middlewares:
|
|||||||
rateLimit: []
|
rateLimit: []
|
||||||
# average: 300
|
# average: 300
|
||||||
# burst: 200
|
# burst: 200
|
||||||
|
|
||||||
|
portalhook:
|
||||||
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user