Skip to content

[fix] restore settings check result unmarshaling from stderr#750

Draft
Fkuloff wants to merge 3 commits intomainfrom
fix/restore-settings-check-unmarshal
Draft

[fix] restore settings check result unmarshaling from stderr#750
Fkuloff wants to merge 3 commits intomainfrom
fix/restore-settings-check-unmarshal

Conversation

@Fkuloff
Copy link
Copy Markdown
Contributor

@Fkuloff Fkuloff commented Apr 13, 2026

Overview

Use errors.As with executor.StderrError to extract structured validation results from hook stderr. When the hook exits with code 1 and stderr contains JSON, it is unmarshaled into settingscheck.Result. Non-stderr errors are propagated as before. Depends on shell-operator StderrError and module-sdk exit code fix.

Its related with module-sdk-pr and shell-operator-pr

What this PR does / why we need it

Special notes for your reviewer

@Fkuloff Fkuloff requested a review from ipaqsa April 13, 2026 11:06
@Fkuloff Fkuloff self-assigned this Apr 13, 2026
@Fkuloff Fkuloff marked this pull request as ready for review April 13, 2026 11:23
@ipaqsa ipaqsa marked this pull request as draft April 13, 2026 11:39
@ipaqsa ipaqsa changed the title [addon-operator] restore settings check result unmarshaling from stderr [fix] restore settings check result unmarshaling from stderr Apr 13, 2026
@ipaqsa ipaqsa added bug Something isn't working go Pull requests that update Go code release-note/bug Something isn't working labels Apr 13, 2026
@ipaqsa ipaqsa requested a review from ldmonster April 13, 2026 11:42
Fkuloff added 2 commits April 13, 2026 19:09
Signed-off-by: Artem Kuleshov <artem.kuleshov@flant.com>
Signed-off-by: Artem Kuleshov <artem.kuleshov@flant.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update Go code release-note/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants