mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Enhanced ingress configuration on anchore-engine chart (#7798)
Signed-off-by: Maxime VISONNEAU <maxime.visonneau@gmail.com>
This commit is contained in:
committed by
k8s-ci-robot
parent
499ce02cf4
commit
e068efa220
@@ -1,5 +1,5 @@
|
||||
name: anchore-engine
|
||||
version: 0.2.2
|
||||
version: 0.2.3
|
||||
appVersion: 0.2.4
|
||||
description: Anchore container analysis and policy evaluation engine service
|
||||
keywords:
|
||||
|
||||
@@ -14,12 +14,30 @@ metadata:
|
||||
{{ toYaml .Values.ingress.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{- range .Values.ingress.tls }}
|
||||
- hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.ingress.hosts }}
|
||||
rules:
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- host: {{ . }}
|
||||
http:
|
||||
paths:
|
||||
- path: {{ $.Values.ingress.path }}
|
||||
backend:
|
||||
serviceName: "{{ template "fullname" $ }}"
|
||||
servicePort: {{ $.Values.service.ports.api }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
backend:
|
||||
serviceName: {{ template "fullname" . }}
|
||||
servicePort: {{ .Values.service.ports.api }}
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{ toYaml .Values.ingress.tls | indent 2 }}
|
||||
{{- end }}
|
||||
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -18,14 +18,19 @@ image:
|
||||
# Used to create Ingress record (should used with service.type: ClusterIP or NodePort depending on platform)
|
||||
ingress:
|
||||
enabled: false
|
||||
annotations:
|
||||
annotations: {}
|
||||
# kubernetes.io/ingress.allow-http: False
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# kubernetes.io/tls-acme: true
|
||||
|
||||
path: /
|
||||
# You can bound on specific hostnames
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
tls: []
|
||||
# Secrets must be manually created in the namespace.
|
||||
tls:
|
||||
# - secretName: tlstestsecret
|
||||
# - secretName: chart-example-tls
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
|
||||
# Dependency on Postgresql, configure here
|
||||
postgresql:
|
||||
|
||||
Reference in New Issue
Block a user