Commit f16cd14
committed
feat: use generateName for leases to allow alias reuse after deletion
Leases created with --lease-id now use K8s generateName instead of a
fixed Name. The user-provided alias is stored as a label and resolved
transparently in Get/Delete/Update via a name-or-alias lookup. This
prevents the "already exists" error when re-creating a lease with the
same --lease-id after deletion (since deletion is a soft-delete that
leaves the K8s object in etcd).
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
Assisted-by: claude-opus-4.61 parent fbf73a6 commit f16cd14
30 files changed
Lines changed: 1101 additions & 521 deletions
File tree
- controller
- api/v1alpha1
- internal
- protocol/jumpstarter
- client/v1
- v1
- service/client/v1
- protocol/proto/jumpstarter/client/v1
- python
- packages
- jumpstarter-cli/jumpstarter_cli
- jumpstarter-mcp/jumpstarter_mcp/tools
- jumpstarter-protocol/jumpstarter_protocol/jumpstarter
- client/v1
- v1
- jumpstarter/jumpstarter/client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
524 | 564 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
Lines changed: 126 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments