Skip to content

Commit

Permalink
Don't spawn ingress if repeater is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Denan Musinovic committed May 30, 2024
1 parent b6f688d commit cc2cfb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/brokencrystals/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
Benchmark application that uses modern technologies and implements a set of
common security vulnerabilities
type: application
version: 0.0.71
version: 0.0.72
keywords:
- brokencrystals
- brkn
3 changes: 1 addition & 2 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ spec:
- name: CLUSTER
value: "{{ .Values.cluster }}"
- name: TIMEOUT
value: "{{ .Values.timeout | default "30000" }}"
restartPolicy: Always
value: "{{ .Values.timeout | default "30000" }}"
{{- end }}

{{- if and .Values.snifferApiKey .Values.snifferProjectID .Values.snifferApiURL }}
Expand Down
7 changes: 5 additions & 2 deletions charts/brokencrystals/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- if not (and .Values.repeaterID .Values.token .Values.cluster) }}

---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand Down Expand Up @@ -56,6 +58,7 @@ spec:
name: {{ .Release.Name }}-keycloak
port:
number: 8080
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand All @@ -72,10 +75,10 @@ spec:
ingressClassName: nginx
tls:
- hosts:
- mailcatcher.{{ .Values.ingress.url }}
- mailcatcher-{{ .Values.ingress.url }}
secretName: {{ if eq .Values.ingress.cert "" }}{{ include "brokencrystals.fullname" . }}-mailcatcher-secret{{ else }}{{ .Values.ingress.cert }}{{ end }}
rules:
- host: mailcatcher.{{ .Values.ingress.url }}
- host: mailcatcher-{{ .Values.ingress.url }}
http:
paths:
- path: /
Expand Down

0 comments on commit cc2cfb6

Please sign in to comment.