Skip to content

Commit 1ecc3a0

Browse files
bpickard22openshift-cherrypick-robot
authored andcommitted
Add cert-rotation script into cno
update install-cni script to match whereabouts bin so that we get cert rotatation in openshift we have to break the tokenwatcher section of the whereabouts script out because it was running in an init container, so it would never "complete", hanging the rollout to accomplish this I created a new whereabouts watcher ds to house this section of the script Signed-off-by: Benjamin Pickard <[email protected]> (cherry picked from commit 6e82842)
1 parent 82191d8 commit 1ecc3a0

File tree

5 files changed

+356
-43
lines changed

5 files changed

+356
-43
lines changed

bindata/network/multus/002-rbac.yaml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,26 +230,32 @@ kind: ClusterRole
230230
metadata:
231231
name: whereabouts-cni
232232
rules:
233-
- apiGroups:
234-
- whereabouts.cni.cncf.io
233+
- apiGroups: ["whereabouts.cni.cncf.io"]
235234
resources:
236-
- ippools
237-
- overlappingrangeipreservations
238-
- nodesliceippools
239-
verbs:
240-
- get
241-
- list
242-
- watch
243-
- create
244-
- update
245-
- patch
246-
- delete
235+
- "nodeslicepools"
236+
- "nodeslicepools/status"
237+
- "nodeslicepools/finalizers"
238+
- "ippools"
239+
- "overlappingrangeipreservations"
240+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
247241
- apiGroups: [""]
248242
resources:
249243
- pods
250-
verbs:
251-
- list
252-
244+
- nodes
245+
verbs: ["get", "list", "watch"]
246+
- apiGroups: ["k8s.cni.cncf.io"]
247+
resources:
248+
- "network-attachment-definitions"
249+
- "network-attachment-definitions/finalizers"
250+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
251+
- apiGroups: ["", "events.k8s.io"]
252+
resources:
253+
- events
254+
verbs: ["create", "patch", "update"]
255+
- apiGroups: ["coordination.k8s.io"]
256+
resources:
257+
- leases
258+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
253259
---
254260
apiVersion: rbac.authorization.k8s.io/v1
255261
kind: Role

0 commit comments

Comments
 (0)