Commit f5363b0
fix: restore len(warnings) > 0 guard in ApisixConsumer webhook
When auth secret references are missing, the ApisixConsumer translator
cannot produce valid auth credentials — ADC validation would always fail
in that state, causing admission denial instead of a warning. Restore the
guard so that missing secrets produce a warning but still admit the resource.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3bf9e3f commit f5363b0
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
| |||
0 commit comments