Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[brokencrystals] adding repeater to pod #330

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Bright Security"

- name: Change name to unstable
if: ${{ github.ref == 'refs/heads/unstable' }}
- name: Change name to unstable
run: |
sed -i 's/brokencrystals/brokencrystals-unstable/g' ./charts/brokencrystals/Chart.yaml
sed -i 's/brkn/brkn-unstbl/g' ./charts/brokencrystals/Chart.yaml
Expand Down
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.69
version: 0.0.65
keywords:
- brokencrystals
- brkn
24 changes: 24 additions & 0 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,30 @@ spec:
value: "{{ .Values.cluster }}"
- name: TIMEOUT
value: "{{ .Values.timeout | default "30000" }}"
restartPolicy: Always
{{- end }}

{{- if and .Values.snifferApiKey .Values.snifferProjectID .Values.snifferApiURL }}
- name: sniffer-agent
securityContext:
capabilities:
add: ["NET_RAW", "NET_ADMIN"]
image: ghcr.io/neuralegion/sniffer-agent:v0.0.1-next.8753699810
args:
- "-a=$(API_URL)"
- "-p=$(API_KEY)"
- "-t=$(PROJECT_ID)"
resources:
requests:
cpu: 200m
memory: 100Mi
env:
- name: API_URL
value: "{{ .Values.snifferApiURL }}"
- name: API_KEY
value: "{{ .Values.snifferApiKey }}"
- name: PROJECT_ID
value: "{{ .Values.snifferProjectID }}"
{{- end }}
restartPolicy: Always

Expand Down
4 changes: 4 additions & 0 deletions charts/brokencrystals/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ repeaterID: ""
token: ""
cluster: ""
timeout: ""
snifferApiURL: ""
snifferApiKey: ""
snifferProjectID: ""

Loading