github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/testdata/with-tarred-dep/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled }} 2 apiVersion: networking.k8s.io/v1 3 kind: Ingress 4 metadata: 5 name: {{ template "common.names.fullname" . }} 6 labels: {{- include "common.labels.standard" . | nindent 4 }} 7 spec: 8 {{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }} 9 ingressClassName: {{ .Values.ingress.ingressClassName | quote }} 10 {{- end }} 11 rules: 12 {{- range .Values.ingress.hostnames }} 13 - host: {{ . }} 14 http: 15 paths: 16 - path: / 17 {{- if $.Values.ingress.publicPaths -}} 18 ( 19 {{- range $index,$path := $.Values.ingress.publicPaths }} 20 {{- if $index }}|{{ end }} 21 {{- $path }} 22 {{- end -}} 23 ) 24 {{- end }} 25 pathType: Prefix 26 backend: 27 service: 28 name: {{ template "common.names.fullname" $ }} 29 port: 30 name: http 31 {{- end }} 32 # tls: [] 33 # hosts: 34 # - hollow-metadataservice.mydomain 35 # secretName: hollow-metadataservice-example-tls 36 {{- end }}