{{- if eq (include "athens-proxy.backendTLSPolicy.enabled" $) "true" }} --- apiVersion: gateway.networking.k8s.io/v1 kind: BackendTLSPolicy metadata: {{- with (include "athens-proxy.backendTLSPolicy.annotations" . | fromYaml) }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- with (include "athens-proxy.backendTLSPolicy.labels" . | fromYaml) }} labels: {{- toYaml . | nindent 4 }} {{- end }} name: {{ include "athens-proxy.fullname" . }} namespace: {{ .Release.Namespace }} spec: targetRefs: - group: "" kind: Service name: {{ include "athens-proxy.service.name" . }} {{- with .Values.gatewayAPI.core.backendTLSPolicy.validation }} validation: {{- toYaml . | nindent 4 }} {{- end }} {{- end -}}