Add Tornjak ingress (#16)

Co-authored-by: Marco Franssen <[email protected]>
This commit is contained in:
Mariusz Sabath
2023-10-09 11:31:55 +00:00
committed by GitHub
co-authored by Marco Franssen
parent 8f1bfc16ad
commit 03ff618958
6 changed files with 86 additions and 3 deletions
@@ -0,0 +1,16 @@
{{- if .Values.tornjak.ingress.enabled -}}
{{- $fullName := include "spire-tornjak.fullname" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ include "spire-server.namespace" . }}
labels:
{{ include "spire-server.labels" . | nindent 4}}
{{- with .Values.tornjak.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{ include "spire-lib.ingress-spec" (dict "ingress" .Values.tornjak.ingress "svcName" (include "spire-tornjak.servicename" .) "port" "tornjak-srv-http") | nindent 2 }}
{{- end }}