Commit c042f1f
authored
fix(webhook): preserve required affinity branch semantics (#5757)
* test(requirenodewithfuse): add coverage for Mutate node-selector injection branch
Signed-off-by: Harsh <harshmastic@gmail.com>
* test(requirenodewithfuse): prove multi-term affinity injection appends only into term[0]
Signed-off-by: Harsh <harshmastic@gmail.com>
* test(requirenodewithfuse): strengthen multi-term affinity assertions
Signed-off-by: Harsh <harshmastic@gmail.com>
* fix(webhook): preserve required affinity branch semantics
Signed-off-by: Harsh <harshmastic@gmail.com>
* fix webhook empty affinity injection
Signed-off-by: Harsh <harshmastic@gmail.com>
* test avoid new testify assertions
Signed-off-by: Harsh <harshmastic@gmail.com>
* fix webhook empty required affinity injection
Signed-off-by: Harsh <harshmastic@gmail.com>
* fix webhook empty injected affinity terms
Signed-off-by: Harsh <harshmastic@gmail.com>
* test clean up require node with fuse assertions
Signed-off-by: Harsh <harshmastic@gmail.com>
---------
Signed-off-by: Harsh <harshmastic@gmail.com>1 parent a106621 commit c042f1f
4 files changed
Lines changed: 784 additions & 24 deletions
File tree
- pkg
- utils
- webhook/plugins
- nodeaffinitywithcache
- requirenodewithfuse
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | | - | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
68 | 113 | | |
| 114 | + | |
69 | 115 | | |
70 | 116 | | |
71 | 117 | | |
| |||
0 commit comments