apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ .Chart.Name }}-ipwhitelist namespace: {{ .Release.Namespace }} labels: {{- include "htwkalender.labels" . | nindent 4 }} annotations: traefik.ingress.kubernetes.io/router.middlewares: "{{- printf "%s-%s@kubernetescrd" .Release.Namespace .Values.middlewares.httpsIPWhitelist.name }},traefik-https-redirect@kubernetescrd" spec: ingressClassName: "PLACEHOLDER" tls: - hosts: {{- range .Values.ingress.httpsIPWhitelist.hosts }} - {{ .host | quote }} {{- end }} secretName: {{ $.Chart.Name }}-cert rules: {{- toYaml .Values.ingress.httpsIPWhitelist.hosts | nindent 4 }}