Commit c228ecb
committed
Add ValidatingAdmissionPolicy for EgressIP
This commit is to add couple of ValidatingAdmissionPolicy to
take care of following conditions:
- k8s.ovn.org/egressip-mark annotation should not be added while
creating an EgressIP.
- A regular user should not be able to add k8s.ovn.org/egressip-mark
annotation. Only a system user is allowed to do so.
Signed-off-by: Arnab Ghosh <arnabghosh89@gmail.com>1 parent 6688e9a commit c228ecb
File tree
2 files changed
+60
-4
lines changed- bindata/network/ovn-kubernetes/common
- pkg/network
2 files changed
+60
-4
lines changedLines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4139 | 4139 | | |
4140 | 4140 | | |
4141 | 4141 | | |
4142 | | - | |
| 4142 | + | |
4143 | 4143 | | |
4144 | 4144 | | |
4145 | 4145 | | |
| |||
4154 | 4154 | | |
4155 | 4155 | | |
4156 | 4156 | | |
4157 | | - | |
| 4157 | + | |
4158 | 4158 | | |
4159 | 4159 | | |
4160 | 4160 | | |
| |||
4165 | 4165 | | |
4166 | 4166 | | |
4167 | 4167 | | |
4168 | | - | |
| 4168 | + | |
4169 | 4169 | | |
4170 | 4170 | | |
4171 | 4171 | | |
| |||
4179 | 4179 | | |
4180 | 4180 | | |
4181 | 4181 | | |
4182 | | - | |
| 4182 | + | |
4183 | 4183 | | |
4184 | 4184 | | |
4185 | 4185 | | |
| |||
0 commit comments