k3s/pkg/apis/networking
Kubernetes Submit Queue 62ba00e4e7 Merge pull request #47123 from danwinship/networkpolicy-update
Automatic merge from submit-queue

Allow NetworkPolicy.spec updates

ValidateNetworkPolicyUpdate currently prohibits changes to `spec` in an existing NetworkPolicy. We were going to fix this for 1.7 but I forgot to submit this PR after the main PR merged. Too late for 1.7? @thockin @caseydavenport @cmluciano 

This only changes networking.NetworkPolicy validation at the moment... Should I change extensions.NetworkPolicy validation too?

Fixes #35911

We should add a test to the e2e NetworkPolicy test for this too if this is going to merge.

**Release note**:
```release-note
As part of the NetworkPolicy "v1" changes, it is also now
possible to update the spec field of an existing
NetworkPolicy. (Previously you had to delete and recreate a
NetworkPolicy if you wanted to change it.)
```
2017-07-07 17:45:41 -07:00
..
install run pkg/apis/make-origin-dir-compile, pkg/apis compile 2017-06-22 11:30:51 -07:00
v1 run hack/update-all 2017-06-22 11:31:03 -07:00
validation Allow NetworkPolicy.spec updates 2017-06-07 09:49:43 -04:00
BUILD Regenerate files 2017-05-28 10:11:02 -04:00
OWNERS Add networking.k8s.io v1 API, with NetworkPolicy 2017-05-28 10:11:01 -04:00
doc.go Add networking.k8s.io v1 API, with NetworkPolicy 2017-05-28 10:11:01 -04:00
register.go Add networking.k8s.io v1 API, with NetworkPolicy 2017-05-28 10:11:01 -04:00
types.go Add networking.k8s.io v1 API, with NetworkPolicy 2017-05-28 10:11:01 -04:00
zz_generated.deepcopy.go run hack/update-codegen.sh 2017-06-22 11:30:58 -07:00