Commit 4c05c17
Update Go SDK and add deploy/app delete commands (#118)
## Summary
This PR updates the Go SDK dependency to the latest version and updates
CLI commands to match SDK interface changes.
## SDK Update
- Updated kernel-go-sdk to v0.37.0
(cb6bef95524033ec889ef9dc2eb8a2c43507ba36)
## Coverage Analysis
A full enumeration of SDK methods and CLI commands was performed. The
SDK update included a breaking change to the `ProfileService.List`
method signature.
## Changes
- **ProfileService.List**: Updated to accept `ProfileListParams`
parameter (breaking change from SDK)
- Added `--limit`, `--offset`, `--query` flags to `kernel profiles list`
command
- Updated ProfilesService interface and tests
## New Flags
- `--limit` for `ProfileListParams.Limit` on `kernel profiles list`
- `--offset` for `ProfileListParams.Offset` on `kernel profiles list`
- `--query` for `ProfileListParams.Query` on `kernel profiles list`
Triggered by:
kernel/kernel-go-sdk@cb6bef9
Reviewer: @dcruzeneil2
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Introduces new deletion flows (including concurrent deletes) that can
remove deployments/apps, so correctness of filtering/confirmation and
error handling is important despite relatively localized CLI changes.
>
> **Overview**
> Updates `kernel-go-sdk` to `v0.37.0` (and adds `golang.org/x/sync`)
and adapts the CLI to the SDK’s breaking `Profiles.List` signature by
introducing paginated, queryable `kernel profiles list` (`--page`,
`--per-page`, `--query`) with updated tests.
>
> Adds destructive-management commands: `kernel app delete <app_name>`
(optionally `--version`, with confirmation and concurrent deletion of
all matching deployments) and `kernel deploy delete <deployment_id>`
(with confirmation/`--yes` and not-found handling).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
74ca985. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: kernel-internal[bot] <260533166+kernel-internal[bot]@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Rafael Garcia <raf@kernel.sh>
Co-authored-by: Neil Dcruze <neildcruze@Neils-MacBook-Pro-203.local>1 parent 2ce4c7e commit 4c05c17
File tree
6 files changed
+255
-21
lines changed- cmd
6 files changed
+255
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
| |||
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
41 | 54 | | |
42 | 55 | | |
43 | 56 | | |
| |||
206 | 219 | | |
207 | 220 | | |
208 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
209 | 292 | | |
210 | 293 | | |
211 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
68 | 79 | | |
69 | 80 | | |
70 | 81 | | |
| |||
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
309 | 347 | | |
310 | 348 | | |
311 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
66 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
71 | 104 | | |
72 | | - | |
| 105 | + | |
73 | 106 | | |
74 | 107 | | |
75 | 108 | | |
76 | | - | |
| 109 | + | |
77 | 110 | | |
78 | 111 | | |
79 | | - | |
| 112 | + | |
80 | 113 | | |
81 | 114 | | |
82 | 115 | | |
83 | 116 | | |
84 | | - | |
| 117 | + | |
85 | 118 | | |
86 | 119 | | |
87 | 120 | | |
| |||
95 | 128 | | |
96 | 129 | | |
97 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
98 | 142 | | |
99 | 143 | | |
100 | 144 | | |
| |||
299 | 343 | | |
300 | 344 | | |
301 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
302 | 349 | | |
303 | 350 | | |
304 | 351 | | |
| |||
310 | 357 | | |
311 | 358 | | |
312 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
313 | 364 | | |
314 | 365 | | |
315 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
316 | 372 | | |
317 | 373 | | |
318 | 374 | | |
| |||
0 commit comments