Skip to content

Commit 68cb46c

Browse files
author
Denan Musinovic
committed
Don't spawn ingress if repeater is used
1 parent b6f688d commit 68cb46c

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

charts/brokencrystals/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: |
44
Benchmark application that uses modern technologies and implements a set of
55
common security vulnerabilities
66
type: application
7-
version: 0.0.71
7+
version: 0.0.72
88
keywords:
99
- brokencrystals
1010
- brkn

charts/brokencrystals/templates/deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ spec:
200200
- name: CLUSTER
201201
value: "{{ .Values.cluster }}"
202202
- name: TIMEOUT
203-
value: "{{ .Values.timeout | default "30000" }}"
204-
restartPolicy: Always
203+
value: "{{ .Values.timeout | default "30000" }}"
205204
{{- end }}
206205

207206
{{- if and .Values.snifferApiKey .Values.snifferProjectID .Values.snifferApiURL }}

charts/brokencrystals/templates/ingress.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not (and .Values.repeaterID .Values.token .Values.cluster) }}
12
---
23
apiVersion: networking.k8s.io/v1
34
kind: Ingress
@@ -56,6 +57,7 @@ spec:
5657
name: {{ .Release.Name }}-keycloak
5758
port:
5859
number: 8080
60+
{{- end }}
5961
---
6062
apiVersion: networking.k8s.io/v1
6163
kind: Ingress
@@ -72,10 +74,10 @@ spec:
7274
ingressClassName: nginx
7375
tls:
7476
- hosts:
75-
- mailcatcher.{{ .Values.ingress.url }}
77+
- mailcatcher-{{ .Values.ingress.url }}
7678
secretName: {{ if eq .Values.ingress.cert "" }}{{ include "brokencrystals.fullname" . }}-mailcatcher-secret{{ else }}{{ .Values.ingress.cert }}{{ end }}
7779
rules:
78-
- host: mailcatcher.{{ .Values.ingress.url }}
80+
- host: mailcatcher-{{ .Values.ingress.url }}
7981
http:
8082
paths:
8183
- path: /

0 commit comments

Comments
 (0)