Cédric Clerget
9f2ab5168d
Return HTTP 409 status when creating an existing overlay
...
Signed-off-by: Cédric Clerget <cedric.clerget@gmail.com >
2026-01-14 13:58:12 -07:00
Cédric Clerget
718c79c7ca
Fix ImageDelete API not returning error when checking if image is used by nodes/profiles
...
Signed-off-by: Cédric Clerget <cedric.clerget@gmail.com >
2025-10-27 16:41:15 -05:00
Jonathon Anderson
66450a7dcd
Simpler names for overlay methods
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:33:18 -06:00
Jonathon Anderson
6fd858899d
Fix warewulfd api behavior when deleting distribution overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:25:21 -06:00
Jonathon Anderson
e609c599a1
Address feedback from Copilot
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:25:21 -06:00
Christian Goll
6f4fd60d8f
refactored overlay class
...
overlay.GetOverlay(name) returns now an error if the overlay doesn't
exist. This is the most canonical way to act if there is no overlay.
2025-08-27 22:24:31 -06:00
Jonathon Anderson
7d0b73e452
Address copilot review from #1945
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:57:01 -06:00
Jonathon Anderson
5ceeb60c24
Refactor wwapi tests for proper isolation
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:48 -06:00
Jonathon Anderson
e149a332e6
Bugfix: cloning a site overlay when parent dir does not exist
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:48 -06:00
Jonathon Anderson
9884aad504
Consolidated createOverlayFile and updateOverlayFile to addOverlayFile
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:48 -06:00
jason yang
62d1aa654d
Support for creating and updating overlay file in wwapi
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2025-07-28 18:18:48 -06:00
Jonathon Anderson
7b2c0901ed
Only return overlay files that refer to a path within the overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:48 -06:00
jason yang
e089fe0101
add overlay file deletion support
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2025-07-28 18:18:48 -06:00
Jonathon Anderson
6b5115934b
DELETE /api/overlays/{id}?force=true can delete overlays in use
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:48 -06:00
Jonathon Anderson
949dc9d46b
Restore idempotency of PUT /api/nodes/{id}
...
HTTP PUT is supposed to be idempotent, so PUT for an existing node or
profile should replace the node or profile, not throw an error.
Generating an error on duplicate can now be requested using the
If-None-Match header with a `*` value.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:41 -06:00
Jonathon Anderson
a0752a5bd0
Simplify overlay mtime api and add tests
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-28 18:18:22 -06:00
jason yang
a3dbf6aeee
add node overlay buildtime
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2025-07-28 18:18:13 -06:00
Jonathon Anderson
7d437e9e58
Merge pull request #1925 from MatthewHink/mhink-ovl
...
Add uid, gid, and permissions to OverlayFile struct
2025-06-16 17:13:20 -06:00
Jonathon Anderson
f61dfdde87
Use jsonassert in test
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-06-16 17:09:34 -06:00
MatthewHink
b6c33d9567
Add uid, gid, and permissions to OverlayFile struct
...
There is an existing test for this. uid, gid, and permissions seem
consistent across test boxes.
2025-06-16 17:09:24 -06:00
MatthewHink
0a1d12e6d4
Fail API add node if node exists
2025-06-13 12:22:03 -07:00
Jonathon Anderson
4005afac4c
Add a new OpenAPI v3 REST API to warewulfd at /api
...
Co-authored-by: jason yang <jasonyangshadow@gmail.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-03 07:12:03 -06:00