Commit a1df751
committed
Fix panic in webhook configuration merge during operator upgrades
Fixes an index out of bounds panic in MergeWebhookConfigurationForUpdate
that occurs when the updated webhook configuration contains more webhooks
than the current configuration. This can happen during operator upgrades
when new webhooks are added.
The fix adds bounds checking to skip copying clientConfig for new webhooks
that don't exist in the current configuration, allowing the merge to
complete successfully.1 parent 6e3a6a3 commit a1df751
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | | - | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
0 commit comments