Skip to content

Commit

Permalink
[brokencrystals] adding repeater to pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Denan Musinovic committed Mar 27, 2024
1 parent ce6c766 commit 6de2db0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
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.63
version: 0.0.64
keywords:
- brokencrystals
- brkn
25 changes: 25 additions & 0 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- "keycloak"
- "nodejs"
- "proxy"
- "repeater"
containers:
- name: postgres
image: postgres
Expand Down Expand Up @@ -173,6 +174,30 @@ spec:
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 30

{{- if and .Values.includeRepeater (and .Values.repeaterID .Values.token .Values.cluster) }}
- name: repeater
image: brightsec/cli{{ if ne .Values.repeaterImageTag "" }}:{{ .Values.repeaterImageTag }}{{ else }}:latest{{ end }}
command: ["bright-cli", "repeater"]
args:
- "--token=$(TOKEN)"
- "--id=$(REPEATER_ID)"
- "--cluster=$(CLUSTER)"
- "--timeout=$(TIMEOUT)"
resources:
requests:
cpu: 200m
memory: 100Mi
env:
- name: REPEATER_ID
value: "{{ .Values.repeaterID }}"
- name: TOKEN
value: "{{ .Values.token }}"
- name: CLUSTER
value: "{{ .Values.cluster }}"
- name: TIMEOUT
value: "{{ .Values.timeout | default "30000" }}"
{{- end }}
restartPolicy: Always

volumes:
Expand Down
6 changes: 6 additions & 0 deletions charts/brokencrystals/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ ingress:
images:
main: experimental
client: unstable
includeRepeater: false
repeaterImageTag: ""
repeaterID: ""
token: ""
cluster: ""
timeout: ""

0 comments on commit 6de2db0

Please sign in to comment.