A lot of work on the workload library

This commit is contained in:
2024-05-19 18:56:41 +02:00
parent ac6751d3da
commit 19f22c18a1
40 changed files with 322 additions and 310 deletions

View File

@ -0,0 +1,13 @@
{{- define "lib.traefik.ingress_route_tcp" -}}
{{- range $k, $v := .Values.traefik.tcpRoutes }}
{{- $customName := printf "%s-%s" (include "chart.fullname" $) $k }}
---
{{- if .Capabilities.APIVersions.Has "traefik.io/v1alpha1/IngressRouteTCP" }}
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
{{- include "lib.metadata" (dict "Context" $ "customName" $customName)}}
spec:
{{ tpl ($v | toYaml | indent 2 | toString) $ }}
{{- end }}
{{- end }}
{{- end -}}

View File

@ -0,0 +1,13 @@
{{- define "lib.traefik.ingress_route_udp" -}}
{{- range $k, $v := .Values.traefik.udpRoutes }}
{{- $customName := printf "%s-%s" (include "chart.fullname" $) $k }}
---
{{- if .Capabilities.APIVersions.Has "traefik.io/v1alpha1/IngressRouteUDP" }}
apiVersion: traefik.io/v1alpha1
kind: IngressRouteUDP
{{- include "lib.metadata" (dict "Context" $ "customName" $customName)}}
spec:
{{ tpl ($v | toYaml | indent 2 | toString) $ }}
{{- end }}
{{- end }}
{{- end -}}