-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(misconf): fix incorrect k8s locations due to JSON to YAML conversion #8073
Conversation
This PR is stale because it has been labeled with inactivity. |
be3824f
to
89dd527
Compare
Interesting, I'm not opposed to it but I am curious if we can solve it with what's already there in stdlib or not. |
Currently, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm just left one comment, @knqyf263 do you have any thoughts on this?
go.mod
Outdated
@@ -48,6 +48,7 @@ require ( | |||
github.com/docker/go-units v0.5.0 | |||
github.com/fatih/color v1.18.0 | |||
github.com/go-git/go-git/v5 v5.13.2 | |||
github.com/go-json-experiment/json v0.0.0-20250211171154-1ae217ad3535 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Could we add a link to the Golang proposal here that would adopt this package? That way we can remove it once it gets upstreamed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 59db14e
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
3bcd218
to
59db14e
Compare
…ion (aquasecurity#8073) Signed-off-by: nikpivkin <[email protected]>
Description
This PR uses
github.com/go-json-experiment/json
to parsing JSON manifests, which produces correct node positions, unlike the current approach where JSON is first converted to YAML and then parsed.Before
After
Related issues
Checklist