Skip to content

Commit a4f3a40

Browse files
authored
chore: adding templates for cilium 1.13 (#2585)
* adding templates for cilium 1.13 * fix resources in clusterrole * address comment * Revert "address comment" This reverts commit 7627154. * remove extra lines
1 parent 8dcabc8 commit a4f3a40

File tree

9 files changed

+999
-0
lines changed

9 files changed

+999
-0
lines changed
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: cilium
5+
rules:
6+
- apiGroups:
7+
- networking.k8s.io
8+
resources:
9+
- networkpolicies
10+
verbs:
11+
- get
12+
- list
13+
- watch
14+
- apiGroups:
15+
- discovery.k8s.io
16+
resources:
17+
- endpointslices
18+
verbs:
19+
- get
20+
- list
21+
- watch
22+
- apiGroups:
23+
- ""
24+
resources:
25+
- namespaces
26+
- services
27+
- pods
28+
- endpoints
29+
- nodes
30+
verbs:
31+
- get
32+
- list
33+
- watch
34+
- apiGroups:
35+
- apiextensions.k8s.io
36+
resources:
37+
- customresourcedefinitions
38+
verbs:
39+
- list
40+
- watch
41+
# This is used when validating policies in preflight. This will need to stay
42+
# until we figure out how to avoid "get" inside the preflight, and then
43+
# should be removed ideally.
44+
- get
45+
- apiGroups:
46+
- cilium.io
47+
resources:
48+
- ciliumnodeconfigs
49+
- ciliumloadbalancerippools
50+
- ciliumbgppeeringpolicies
51+
- ciliumclusterwideenvoyconfigs
52+
- ciliumclusterwidenetworkpolicies
53+
- ciliumegressgatewaypolicies
54+
- ciliumendpoints
55+
- ciliumendpointslices
56+
- ciliumenvoyconfigs
57+
- ciliumidentities
58+
- ciliumlocalredirectpolicies
59+
- ciliumnetworkpolicies
60+
- ciliumnodes
61+
verbs:
62+
- list
63+
- watch
64+
- apiGroups:
65+
- cilium.io
66+
resources:
67+
- ciliumidentities
68+
- ciliumendpoints
69+
- ciliumnodes
70+
verbs:
71+
- create
72+
- apiGroups:
73+
- cilium.io
74+
# To synchronize garbage collection of such resources
75+
resources:
76+
- ciliumidentities
77+
verbs:
78+
- update
79+
- apiGroups:
80+
- cilium.io
81+
resources:
82+
- ciliumendpoints
83+
verbs:
84+
- delete
85+
- get
86+
- apiGroups:
87+
- cilium.io
88+
resources:
89+
- ciliumnodes
90+
- ciliumnodes/status
91+
verbs:
92+
- get
93+
- update
94+
- apiGroups:
95+
- cilium.io
96+
resources:
97+
- ciliumnetworkpolicies/status
98+
- ciliumclusterwidenetworkpolicies/status
99+
- ciliumendpoints/status
100+
- ciliumendpoints
101+
verbs:
102+
- patch
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: cilium
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: cilium
9+
subjects:
10+
- kind: ServiceAccount
11+
name: "cilium"
12+
namespace: kube-system
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: "cilium"
5+
namespace: kube-system

0 commit comments

Comments
 (0)