{{- if and .Values.contour .Values.contour.enabled }} {{- $instances := .Values.contour.instances -}} {{- $fullname := include "alloy.fullname" . -}} {{- range $instance := $instances }} apiVersion: projectcontour.io/v1alpha1 kind: ExtensionService metadata: name: {{ $instance }}-extension-service namespace: {{ $.Release.Namespace }} spec: protocol: h2c services: - name: {{ $fullname }} port: 4317 --- {{- end }} {{- end }}