Add support for RHCOS4 nodes based on RHEL8#14301
Add support for RHCOS4 nodes based on RHEL8#14301yuumasato merged 1 commit intoComplianceAsCode:masterfrom
Conversation
609a170 to
4160ab3
Compare
ATEX Test ResultsTest artifacts have been submitted to Testing Farm. Results: View Test Results This comment was automatically generated by the ATEX workflow. |
Update the regex patterns to make the quotes optional
4160ab3 to
d972290
Compare
|
With this PR, the scan with rhcos4 profiles won't return NOT-APPLICABLE: Also test with a rhel9 based 4.14 cluster, the scan will return the same result. |
| <ind:instance datatype="int">1</ind:instance> | ||
| </ind:textfilecontent54_object> | ||
| <ind:textfilecontent54_state id="state_rhcos4_rhel8_rhel_version" version="1"> | ||
| <ind:subexpression operation="pattern match">^8\.</ind:subexpression> |
There was a problem hiding this comment.
I wonder if we need to capture the value if it is just an 8, but we can fix it in another PR
There was a problem hiding this comment.
Technically we don't need it, however think it is a good pattern to have an object and state.
We can understand better if a fail is because the line doesn't exist or has wrong value.
And actually, a future optimization would be to unify obj_rhcos4_rhel8_rhel_version and obj_rhcos4_rhel9_rhel_version, since they collect the same line on the same file.
| <ind:instance datatype="int">1</ind:instance> | ||
| </ind:textfilecontent54_object> | ||
| <ind:textfilecontent54_state id="state_rhcos4_rhel8_rhel_version" version="1"> | ||
| <ind:subexpression operation="pattern match">^8\.</ind:subexpression> |
There was a problem hiding this comment.
Technically we don't need it, however think it is a good pattern to have an object and state.
We can understand better if a fail is because the line doesn't exist or has wrong value.
And actually, a future optimization would be to unify obj_rhcos4_rhel8_rhel_version and obj_rhcos4_rhel9_rhel_version, since they collect the same line on the same file.
Description:
Rationale:
For clusters based on different platforms, you can see the quotes is optional
Review Hints: