Skip to content

Commit 59be86a

Browse files
committed
Update e2e to test NP support
1 parent 396aba0 commit 59be86a

File tree

6 files changed

+83
-0
lines changed

6 files changed

+83
-0
lines changed

test/images/busybox-index/busybox/1.0.0/manifests/csv.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ spec:
3434
command:
3535
- sleep
3636
- "9000"
37+
permissions:
38+
- serviceAccountName: busybox-operator
39+
rules:
40+
- apiGroups: ["networking.k8s.io"]
41+
resources: ["networkpolicies"]
42+
verbs: ["get", "list", "create", "update", "delete"]
3743
strategy: deployment
3844
installModes:
3945
- supported: true
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: ClusterServiceVersion
3+
metadata:
4+
name: busybox.v2.0.0
5+
namespace: operators
6+
spec:
7+
description: busybox
8+
displayName: busybox
9+
install:
10+
spec:
11+
deployments:
12+
- name: busybox
13+
spec:
14+
replicas: 1
15+
selector:
16+
matchLabels:
17+
app: busybox
18+
template:
19+
metadata:
20+
labels:
21+
app: busybox
22+
spec:
23+
containers:
24+
- command:
25+
- sleep
26+
- "9000"
27+
image: busybox
28+
name: busybox
29+
strategy: deployment
30+
installModes:
31+
- supported: true
32+
type: OwnNamespace
33+
- supported: true
34+
type: SingleNamespace
35+
- supported: true
36+
type: MultiNamespace
37+
- supported: true
38+
type: AllNamespaces
39+
maturity: alpha
40+
provider:
41+
name: Red Hat
42+
version: 2.0.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: NetworkPolicy
3+
metadata:
4+
name: busybox-networkpolicy
5+
spec:
6+
podSelector: {}
7+
policyTypes:
8+
- Ingress
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: policy/v1
2+
kind: PodDisruptionBudget
3+
metadata:
4+
name: busybox-pdb
5+
spec:
6+
minAvailable: 2
7+
selector:
8+
matchLabels:
9+
app: busybox
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: scheduling.k8s.io/v1
2+
kind: PriorityClass
3+
metadata:
4+
name: super-priority
5+
description: This priority class should be used for XYZ service pods only.
6+
globalDefault: false
7+
value: 1000
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: autoscaling.k8s.io/v1
2+
kind: VerticalPodAutoscaler
3+
metadata:
4+
name: busybox-vpa
5+
spec:
6+
targetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: busybox
10+
updatePolicy:
11+
updateMode: "Off"

0 commit comments

Comments
 (0)