A lot of work on the workload library
This commit is contained in:
@ -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 -}}
|
@ -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 -}}
|
Reference in New Issue
Block a user