-
Notifications
You must be signed in to change notification settings - Fork 24
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
Modify API Resource Collector to Convert YAML to JSON Format #235
Modify API Resource Collector to Convert YAML to JSON Format #235
Conversation
CHANGELOG.md
Outdated
@@ -9,7 +9,10 @@ Versioning](https://semver.org/spec/v2.0.0.html). | |||
|
|||
### Enhancements | |||
|
|||
- | |||
- Modify API resource collector to detect if fetched resource is yaml string and |
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.
My only complaint about this patch is that this should not be an enhancement but either a fix or even an internal change.
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.
That makes sense, let me do that
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.
@Vincent056 if you move the changelog line, I'll lgtm the PR :-)
btw this PR should be linked to https://issues.redhat.com/browse/OCPBUGS-7983 right? |
If yes, could we fix the changelog? |
the jira issue you referenced here was the result of not using a correct tailored profile. Without this patch, those two rules will just fail but not result in pod crash. |
OK, then I'll let @xiaojiey confirm if the patch + TP fix her issues (I did confirm that the crash is fixed) |
/hold for test |
Verification pass with #235 and ComplianceAsCode/content#10333.
Verification steps:
|
/unhold |
/label qe-approved |
/retest |
91a7285
to
3bf4715
Compare
/retest |
1 similar comment
/retest |
welp, there's already a conflict, can you rebase again? |
Modify API resource collector to detect and convert fetched resources to json format when they are returned in yaml format. This is required because some API resources are not available in json format and need to be converted to json format for reading by OpenSCAP.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhrozek, Vincent056 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Modify API resource collector to detect and convert fetched resources to json format when they are returned in yaml format. This is required because some API resources are not available in json format and need to be converted to json format for reading by OpenSCAP.
example rules: