Commit deb1808
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 8d09651 commit deb1808
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 | |
|---|---|---|---|
| |||
4153 | 4153 | | |
4154 | 4154 | | |
4155 | 4155 | | |
4156 | | - | |
| 4156 | + | |
4157 | 4157 | | |
4158 | 4158 | | |
4159 | 4159 | | |
| |||
4168 | 4168 | | |
4169 | 4169 | | |
4170 | 4170 | | |
4171 | | - | |
| 4171 | + | |
4172 | 4172 | | |
4173 | 4173 | | |
4174 | 4174 | | |
| |||
4179 | 4179 | | |
4180 | 4180 | | |
4181 | 4181 | | |
4182 | | - | |
| 4182 | + | |
4183 | 4183 | | |
4184 | 4184 | | |
4185 | 4185 | | |
| |||
4193 | 4193 | | |
4194 | 4194 | | |
4195 | 4195 | | |
4196 | | - | |
| 4196 | + | |
4197 | 4197 | | |
4198 | 4198 | | |
4199 | 4199 | | |
| |||
0 commit comments