Commit 85616c9
committed
fix: don't strip user-managed kagenti.io/skills annotation on deletion
The deletion handler was removing the kagenti.io/skills annotation from
the target Deployment. This annotation is user-managed (set by the
kagenti backend or user) — the operator reads but never sets it, so it
should not remove it either.
This caused the E2E skill discovery test to fail: the "feature gate
disabled" test deletes the AgentRuntime, the finalizer strips the
annotation, and the subsequent "feature gate enabled" test finds an
empty annotation on the same Deployment.
Also re-apply the Deployment fixture in the E2E "feature gate enabled"
BeforeAll to guard against any future annotation-stripping regressions.
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>1 parent 1432569 commit 85616c9
2 files changed
Lines changed: 7 additions & 4 deletions
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | 722 | | |
727 | 723 | | |
728 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2133 | 2133 | | |
2134 | 2134 | | |
2135 | 2135 | | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
2136 | 2143 | | |
2137 | 2144 | | |
2138 | 2145 | | |
| |||
0 commit comments