{{- if .Values.tcp }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "nginx-ingress.fullname" . }}-tcp
  namespace: {{ .Release.Namespace }}
  labels: {{- include "nginx-ingress.labels" . | nindent 4 }}
    component: {{ .Values.name }}
    {{- if .Values.commonLabels }}
    {{- include "nginx-ingress.tplValue" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
    {{- end }}
  {{- if .Values.commonAnnotations }}
  annotations: {{- include "nginx-ingress.annotations" (dict "annotations" .Values.commonAnnotations "context" $) | trim | nindent 4 }}
  {{- end }}
data: {{- include "nginx-ingress.tplValue" (dict "value" .Values.tcp "context" $) | nindent 2 }}
{{- end }}
