Enhanced ingress configuration on anchore-engine chart (#7798)

Signed-off-by: Maxime VISONNEAU <maxime.visonneau@gmail.com>
This commit is contained in:
Maxime VISONNEAU
2018-09-25 09:40:50 -07:00
committed by k8s-ci-robot
parent 499ce02cf4
commit e068efa220
3 changed files with 33 additions and 10 deletions
+1 -1
View File
@@ -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:
+23 -5
View File
@@ -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 -}}
+9 -4
View File
@@ -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: