-
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 #523
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
|
Signed-off-by: YiscahLevySilas1 <[email protected]>
Signed-off-by: YiscahLevySilas1 <[email protected]>
Summary:
|
PR Type:
Bug fix
PR Description:
This PR addresses an issue with the path formatting in the label usage rules. The changes involve updating the path strings in the Rego rules and the corresponding test files to use square brackets for accessing label keys, which is the correct syntax for accessing map elements in Rego. The changes are made in two rule files and their corresponding test files.
PR Main Files Walkthrough:
files:
rules/k8s-common-labels-usage/raw.rego
: Updated the path strings in the Rego rules to use square brackets for accessing label keys.rules/k8s-common-labels-usage/test/cronjob/expected.json
: Updated the expected path strings in the test file to reflect the changes made in the corresponding Rego rule.rules/k8s-common-labels-usage/test/pod/expected.json
: Updated the expected path strings in the test file to reflect the changes made in the corresponding Rego rule.rules/k8s-common-labels-usage/test/workload-fail/expected.json
: Updated the expected path strings in the test file to reflect the changes made in the corresponding Rego rule.rules/label-usage-for-resources/raw.rego
: Updated the path strings in the Rego rules to use square brackets for accessing label keys.rules/label-usage-for-resources/test/cronjob/expected.json
: Updated the expected path strings in the test file to reflect the changes made in the corresponding Rego rule.rules/label-usage-for-resources/test/workload-fail/expected.json
: Updated the expected path strings in the test file to reflect the changes made in the corresponding Rego rule.User Description:
Overview