diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 954dcb8c..41a44ee0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,8 @@ jobs: git config --global user.email "devops@brightsec.com" 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 diff --git a/charts/brokencrystals/Chart.yaml b/charts/brokencrystals/Chart.yaml index 92d457cb..b6431968 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.69 +version: 0.0.65 keywords: - brokencrystals - brkn diff --git a/charts/brokencrystals/templates/deployment.yaml b/charts/brokencrystals/templates/deployment.yaml index 370b4c42..ef1508c6 100644 --- a/charts/brokencrystals/templates/deployment.yaml +++ b/charts/brokencrystals/templates/deployment.yaml @@ -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 diff --git a/charts/brokencrystals/values.yaml b/charts/brokencrystals/values.yaml index 390a1bd1..bb189c79 100644 --- a/charts/brokencrystals/values.yaml +++ b/charts/brokencrystals/values.yaml @@ -10,3 +10,7 @@ repeaterID: "" token: "" cluster: "" timeout: "" +snifferApiURL: "" +snifferApiKey: "" +snifferProjectID: "" +