Skip to content
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

manifests syntax issues - validate analyzer warning/error #438

Open
2 tasks
shireenf-ibm opened this issue Nov 5, 2024 · 0 comments
Open
2 tasks

manifests syntax issues - validate analyzer warning/error #438

shireenf-ibm opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@shireenf-ibm
Copy link
Contributor

shireenf-ibm commented Nov 5, 2024

  • raise warning/error when input yaml file has no "---" separator between the resources
    (found an example with such input, for which some of the resources were just ignored instead of having warn/err issued, and then the output did not match the expected, when one assumes all the resources are considered for the analysis) .

  • raise a warning/ error when the manifests are using selectors with wrong fields;
    example :
    following input rule-peer in an ANP :

 action: "Allow"
     from:
     - namespaces:
         namespaceSelector:
           matchLabels:
             kubernetes.io/metadata.name: monitoring

is not correct as the namespaces is of type *metav1.LabelSelector and the namespaceSelector is not needed;
this input causes wrong parse result of the namespaces field; however no warning/ error is returned

@shireenf-ibm shireenf-ibm self-assigned this Nov 5, 2024
@adisos adisos changed the title syntax issues manifests syntax issues - validate analyzer warning/error Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant