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

fix(k8spsphostnetworkingports): null check container.ports #582

Merged

Conversation

julianKatz
Copy link
Contributor

Previously, the badContainers section of the K8sNative validation logic did not verify that the ports variable was set on a container spec in a pod. As this template's purpose is to verify that the specified ports fall within a given range, we would expect that no ports is not a violation.

@julianKatz julianKatz requested a review from a team as a code owner August 26, 2024 19:52
@julianKatz julianKatz force-pushed the fix-container-ports-undefined branch from 0485176 to 0f18497 Compare August 26, 2024 19:53
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to patch version bump only, otherwise LGTM

@julianKatz julianKatz force-pushed the fix-container-ports-undefined branch 3 times, most recently from d1c172c to 1a2811e Compare August 26, 2024 20:27
Previously, the `badContainers` section of the K8sNative validation
logic did not verify that the `ports` variable was set on a container
spec in a pod.  As this template's purpose is to verify that the
specified ports fall within a given range, we would expect that _no
ports_ is not a violation.

Signed-off-by: juliankatz <[email protected]>
@julianKatz julianKatz force-pushed the fix-container-ports-undefined branch from 1a2811e to 2fdf9ca Compare August 26, 2024 20:29
Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @julianKatz!

@julianKatz julianKatz requested a review from a team August 26, 2024 21:17
@apeabody apeabody merged commit d975f10 into open-policy-agent:master Aug 26, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants