k3s/plugin
Kubernetes Submit Queue 7f87337b8b
Merge pull request #56650 from danwinship/networkpolicy-rbac
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add RBAC policies for NetworkPolicy

**What this PR does / why we need it**:
When using RBAC, none of the namespace-level roles currently have permission to do anything with NetworkPolicy. (Only cluster-admin does, by virtue of having permission on "*".) This fixes it so "admin" and "edit" have read/write permission, and "view" has read-only permission.

I added permission for both the extensions and networking objects, which I believe is correct as long as both of them exist?

(This would be nice to fix in 1.9, although it's not a regression. It's always been broken.)

**Release note**:
```release-note
When using Role-Based Access Control, the "admin", "edit", and "view" roles now have the expected permissions on NetworkPolicy resources.
```
2017-12-16 12:09:11 -08:00
..
cmd/kube-scheduler fix wording in kube-scheduler warning 2017-12-01 17:00:05 +00:00
pkg Merge pull request #56650 from danwinship/networkpolicy-rbac 2017-12-16 12:09:11 -08:00
BUILD Admission Controller PVC Finalizer Plugin 2017-11-23 11:46:28 +01:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00