softplayer-apps/charts/openvpn/templates/tcp_route.yaml

14 lines
394 B
YAML
Raw Permalink Normal View History

2024-07-13 20:24:41 +00:00
---
{{- if $.Capabilities.APIVersions.Has "traefik.io/v1alpha1/IngressRouteTCP" -}}
{{- if .Values.tcproute.enabled }}
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: {{ include "openvpn-chart.fullname" . }}
labels:
{{- include "openvpn-chart.labels" . | nindent 4 }}
spec:
{{ tpl (.Values.tcproute.spec | toYaml | indent 2 | toString) $ }}
{{- end }}
{{- end }}