Skip to content

Commit

Permalink
Fix kindnet permission to support network policies (#19360)
Browse files Browse the repository at this point in the history
* add -d shorthand for --driver

* add -d shorthand for --driver

* give more permission to kindnet clusterrole
  • Loading branch information
medyagh authored Aug 21, 2024
1 parent e62e3b9 commit 1788ab7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/minikube/cni/kindnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ rules:
- ""
resources:
- nodes
- namespaces
- pods
verbs:
- list
- watch
Expand All @@ -55,6 +57,14 @@ rules:
- configmaps
verbs:
- get
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- get
- list
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit 1788ab7

Please sign in to comment.