Skip to content

Commit

Permalink
[brokencrystals] Changing mailcatcher container to be optional, by de…
Browse files Browse the repository at this point in the history
…fault it's turned off
  • Loading branch information
Denan Musinovic committed Sep 30, 2024
1 parent 3d209ae commit b23691c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ spec:
failureThreshold: 12
periodSeconds: 10

{{- if .Values.mailcatcher }}
- name: mailcatcher
image: sj26/mailcatcher

{{- end }}

{{- if and .Values.repeaterID .Values.token .Values.cluster }}
- name: repeater
image: brightsec/cli{{ if ne .Values.repeaterImageTag "" }}:{{ .Values.repeaterImageTag }}{{ else }}:latest{{ end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/brokencrystals/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spec:
port:
number: 8080

{{- if .Values.mailcatcher }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand Down Expand Up @@ -87,3 +88,4 @@ spec:
name: {{ .Release.Name }}-mailcatcher
port:
number: 1080
{{- end }}
1 change: 1 addition & 0 deletions charts/brokencrystals/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ snifferApiKey: ""
snifferProjectID: ""
snifferNetworkInterface: ""
clusterConfigMap: "brokencrystals-config"
mailcatcher: false

0 comments on commit b23691c

Please sign in to comment.