Skip to content

Commit

Permalink
[library] fix user ports and add tls options in routes (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
titigmr authored Dec 2, 2024
1 parent f163bd4 commit dc507fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/library-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: library-chart
version: 1.5.32
version: 1.5.33
type: library
11 changes: 10 additions & 1 deletion charts/library-chart/templates/_route.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit dc507fb

Please sign in to comment.