Skip to content

Add metal config drive#1

Open
atd9876 wants to merge 5 commits into
mainfrom
add-metal-config-drive
Open

Add metal config drive#1
atd9876 wants to merge 5 commits into
mainfrom
add-metal-config-drive

Conversation

@atd9876
Copy link
Copy Markdown
Owner

@atd9876 atd9876 commented Apr 24, 2026

Local PR for copilot review

@atd9876
Copy link
Copy Markdown
Owner Author

atd9876 commented Apr 24, 2026

@copilot review this PR

tuunit and others added 2 commits May 8, 2026 12:39
Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
@atd9876 atd9876 force-pushed the add-metal-config-drive branch 2 times, most recently from 114170c to bab4a01 Compare May 8, 2026 11:58
- Use strings.Fields instead of strings.Split for proper whitespace handling
- Use errors.Is for wrapped error comparison (context.DeadlineExceeded)
- Rename local url variable to parsedURL to avoid shadowing net/url import
- Check f.Close() error in test helper
- Check url.Parse error in test assertion

Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
@atd9876 atd9876 force-pushed the add-metal-config-drive branch from bab4a01 to a13e77b Compare May 8, 2026 12:25
atd9876 added 2 commits May 13, 2026 13:17
- Return hard error on device timeout instead of silently continuing
- Wrap os.Remove in logging closure for temp mount point cleanup
- Add blackbox integration test for cmdline device/path config fetch

Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
Convert silent failure paths in the cmdline provider to hard errors:

- Return an error when only one of ignition.config.device and
  ignition.config.path is set, instead of logging a warning and
  continuing without config.
- Return an error when the config file is not found on the specified
  device, instead of silently returning ErrEmpty.

Add negative blackbox tests for both error paths:
- cmdline.device.config.notfound: device exists but config file missing.
- cmdline.device.notfound: specified device label does not exist.

Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants