Commit eb12e96
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 8452bdf commit eb12e96
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