From dc507fb4df8c951414c3918d2af81975ebfb3504 Mon Sep 17 00:00:00 2001 From: titigmr Date: Mon, 2 Dec 2024 10:10:23 +0100 Subject: [PATCH] [library] fix user ports and add tls options in routes (#180) --- charts/library-chart/Chart.yaml | 2 +- charts/library-chart/templates/_route.tpl | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/charts/library-chart/Chart.yaml b/charts/library-chart/Chart.yaml index b598ffff..6a41d211 100644 --- a/charts/library-chart/Chart.yaml +++ b/charts/library-chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: library-chart -version: 1.5.32 +version: 1.5.33 type: library diff --git a/charts/library-chart/templates/_route.tpl b/charts/library-chart/templates/_route.tpl index 92498e01..1fa7dc5c 100644 --- a/charts/library-chart/templates/_route.tpl +++ b/charts/library-chart/templates/_route.tpl @@ -54,6 +54,9 @@ spec: {{- if .Values.route.tls.destinationCACertificate }} destinationCACertificate: {{- .Values.route.tls.destinationCACertificate }} {{- end }} + {{- if .Values.route.tls.insecureEdgeTerminationPolicy }} + insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }} + {{- end }} wildcardPolicy: {{ .Values.route.wildcardPolicy }} {{- end }} {{- end }} @@ -69,7 +72,7 @@ spec: apiVersion: route.openshift.io/v1 kind: Route metadata: - name: {{ $fullName }}-user + name: {{ $fullName }}-user-{{ $userPort }} labels: {{- include "library-chart.labels" . | nindent 4 }} annotations: @@ -100,6 +103,9 @@ spec: {{- if .Values.route.tls.destinationCACertificate }} destinationCACertificate: {{ .Values.route.tls.destinationCACertificate }} {{- end }} + {{- if .Values.route.tls.insecureEdgeTerminationPolicy }} + insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }} + {{- end }} wildcardPolicy: {{ .Values.route.wildcardPolicy }} --- {{- end }} @@ -144,6 +150,9 @@ spec: {{- if .Values.route.tls.destinationCACertificate }} destinationCACertificate: {{- .Values.route.tls.destinationCACertificate }} {{- end }} + {{- if .Values.route.tls.insecureEdgeTerminationPolicy }} + insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }} + {{- end }} wildcardPolicy: {{ .Values.route.wildcardPolicy }} {{- end }} {{- end }}