-
Notifications
You must be signed in to change notification settings - Fork 50
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 fixpath for controls C-0077 and C-0076 #522
Conversation
Signed-off-by: YiscahLevySilas1 <[email protected]>
…85-fix-control-C-0262 Signed-off-by: YiscahLevySilas1 <[email protected]>
Signed-off-by: YiscahLevySilas1 <[email protected]>
…golibrary into SUB-2185-fix-control-C-0262 Signed-off-by: YiscahLevySilas1 <[email protected]>
…85-fix-control-C-0262 Signed-off-by: YiscahLevySilas1 <[email protected]>
Signed-off-by: YiscahLevySilas1 <[email protected]>
PR Analysis
PR Feedback
How to use
|
Summary:
|
PR Type:
Bug fix
PR Description:
This PR addresses an issue with the formatting of label paths in Rego rules. The previous format used a dot notation which has been replaced with a bracket notation to correctly reference labels in the metadata. This change affects both the rules and their corresponding test files.
PR Main Files Walkthrough:
files:
rules/k8s-common-labels-usage/raw.rego
: Changed the label path format from dot notation to bracket notation in the 'no_K8s_label_or_no_K8s_label_usage' functions.rules/k8s-common-labels-usage/test/cronjob/expected.json
: Updated the expected output to reflect the new label path format.rules/k8s-common-labels-usage/test/pod/expected.json
: Updated the expected output to reflect the new label path format.rules/k8s-common-labels-usage/test/workload-fail/expected.json
: Updated the expected output to reflect the new label path format.rules/label-usage-for-resources/raw.rego
: Changed the label path format from dot notation to bracket notation in the 'no_label_or_no_label_usage' functions.rules/label-usage-for-resources/test/cronjob/expected.json
: Updated the expected output to reflect the new label path format.rules/label-usage-for-resources/test/workload-fail/expected.json
: Updated the expected output to reflect the new label path format.User Description:
Overview