Skip to content

Commit 2b482d9

Browse files
Dan FiedlerSilvenga
authored andcommitted
Add scenario mapping for nodejs-protect
1 parent f7b2329 commit 2b482d9

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: agents.contrastsecurity.com/v1beta1
2+
kind: AgentInjector
3+
metadata:
4+
name: injection-nodejs-protect
5+
spec:
6+
enabled: true
7+
type: nodejs
8+
selector:
9+
labels:
10+
- name: app
11+
value: injection-nodejs-protect
12+
image:
13+
pullPolicy: Never
14+
connection:
15+
name: testing-agent-connection
16+
configuration:
17+
name: testing-agent-configuration
18+
---
19+
apiVersion: apps/v1
20+
kind: Deployment
21+
metadata:
22+
name: injection-nodejs-protect
23+
labels:
24+
app: injection-nodejs-protect
25+
spec:
26+
replicas: 1
27+
selector:
28+
matchLabels:
29+
app: injection-nodejs-protect
30+
strategy:
31+
type: Recreate
32+
template:
33+
metadata:
34+
labels:
35+
app: injection-nodejs-protect
36+
spec:
37+
containers:
38+
- image: k8s.gcr.io/pause:3.3
39+
name: pause

manifests/examples/testing/scenarios/namespaced/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ resources:
1414
- ./injection-java.yaml
1515
- ./injection-javatooloptions.yaml
1616
- ./injection-nodejs.yaml
17+
- ./injection-nodejs-protect.yaml
1718
- ./injection-php.yaml
1819
- ./missing-deps.yaml
1920
- ./multiple-images.yaml

0 commit comments

Comments
 (0)