Commit 26272b3
authored
fix(CI): use ephemeral deployer script for Kessel deployment (#2773)
**Fix ephemeral namespace not released after QE smoke tests**
- The Kessel deploy stage was manually reserving a namespace and running
`bonfire deploy` inline, bypassing `deploy_ephemeral_env.sh` — which
means `_common_deploy_logic.sh` was never sourced and its `teardown`
trap (`trap teardown EXIT ERR SIGINT SIGTERM`) was never registered,
leaving the ephemeral namespace alive after the job finished
- Replace the inline namespace reservation + `bonfire deploy` block with
`deploy_ephemeral_env.sh`, which handles both deployment and guaranteed
namespace cleanup on exit (pass or fail)
- All Kessel-specific deploy arguments are expressed through the
script's supported env vars:
- `APP_NAME` — deploys the full Kessel stack (`host-inventory kessel
rbac compliance`)
- `IMAGE` / `IMAGE_TAG` — compliance-backend image (pipeline env + short
SHA override)
- `COMPONENT_NAME` — drives `--set-template-ref compliance=<sha>` via
`_common_deploy_logic.sh`
- `OPTIONAL_DEPS_METHOD=all`
- `EXTRA_DEPLOY_ARGS` — carries the RBAC image/template refs and all
`-p` params for rbac, kessel-relations, and host-inventory
[RHINENG-26954](https://redhat.atlassian.net/browse/RHINENG-26954)
[RHINENG-26954]:
https://redhat.atlassian.net/browse/RHINENG-26954?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ1 file changed
Lines changed: 17 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
91 | 82 | | |
92 | | - | |
93 | 83 | | |
94 | 84 | | |
95 | 85 | | |
| |||
0 commit comments