diff --git a/charts/brokencrystals/Chart.yaml b/charts/brokencrystals/Chart.yaml index 5ef6e404..7f585c6f 100644 --- a/charts/brokencrystals/Chart.yaml +++ b/charts/brokencrystals/Chart.yaml @@ -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 diff --git a/charts/brokencrystals/templates/deployment.yaml b/charts/brokencrystals/templates/deployment.yaml index 30e4e2bc..18f86fc9 100644 --- a/charts/brokencrystals/templates/deployment.yaml +++ b/charts/brokencrystals/templates/deployment.yaml @@ -25,6 +25,7 @@ spec: - "keycloak" - "nodejs" - "proxy" + - "repeater" containers: - name: postgres image: postgres @@ -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: diff --git a/charts/brokencrystals/values.yaml b/charts/brokencrystals/values.yaml index 8a298fc0..27c81352 100644 --- a/charts/brokencrystals/values.yaml +++ b/charts/brokencrystals/values.yaml @@ -5,3 +5,9 @@ ingress: images: main: experimental client: unstable +includeRepeater: false +repeaterImageTag: "" +repeaterID: "" +token: "" +cluster: "" +timeout: ""