mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-07-27 01:00:19 +08:00
readd portalhook
This commit is contained in:
@@ -22,4 +22,4 @@ sources:
|
||||
- https://github.com/traefik/traefik-helm-chart
|
||||
- https://traefik.io/
|
||||
type: application
|
||||
version: 0.0.7
|
||||
version: 0.0.8
|
||||
|
||||
@@ -176,3 +176,6 @@ serviceAccount:
|
||||
securityContext:
|
||||
capabilities:
|
||||
drop: [ALL]
|
||||
|
||||
portalhook:
|
||||
enabled: true
|
||||
|
||||
23
charts/incubator/traefik/templates/portalhook.yaml
Normal file
23
charts/incubator/traefik/templates/portalhook.yaml
Normal file
@@ -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: []
|
||||
# average: 300
|
||||
# burst: 200
|
||||
|
||||
portalhook:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user