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

Add InitContainers and EphermalContainers to Require Limits and Requests #1103

Conversation

nikhilmaheshwari24
Copy link
Contributor

@nikhilmaheshwari24 nikhilmaheshwari24 commented Jul 31, 2024

Signed-off-by: Nikhil Maheshwari [email protected]

Related Issue(s)

#951

Description

This PR updates the existing Kyverno policy to validate CPU and memory resource requests and limits for both containers and initContainers within Pods. This enhancement ensures comprehensive resource management across all container types in a Kubernetes cluster.

Checklist

  • I have read the policy contribution guidelines.
  • I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

Copy link
Contributor

@chipzoller chipzoller left a comment

Choose a reason for hiding this comment

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

Thanks for this. Couple things:

  1. You must sign off on all commits (DCO).
  2. See contribution guide here, specifically the part about updating Artifact Hub metadata file.

@realshuting
Copy link
Member

Please sign-off your commits - https://github.com/kyverno/policies/pull/1103/checks?check_run_id=28177145454.

Signed-off-by: Nikhil Maheshwari [email protected]
Signed-off-by: Nikhil Maheshwari <[email protected]>
Signed-off-by: Nikhil Maheshwari [email protected]
Signed-off-by: Nikhil Maheshwari <[email protected]>
@nikhilmaheshwari24 nikhilmaheshwari24 force-pushed the require-pod-requests-limits-with-all-containers branch from c3997ab to 529b43d Compare August 1, 2024 07:34
@nikhilmaheshwari24
Copy link
Contributor Author

@realshuting @chipzoller Could you please approve this?

@chipzoller
Copy link
Contributor

Unresolved conversations.

@chipzoller
Copy link
Contributor

You have not followed the contribution guide, specifically the part about updating artifacthub-pkg.yml file.

@chipzoller chipzoller changed the title Enhance Resource Constraints Validation Policy to Include InitContainers & EphermalContainers Add InitContainers and EphermalContainers to Require Limits and Requests Aug 2, 2024
@nikhilmaheshwari24
Copy link
Contributor Author

@chipzoller I apologize. Have signed off the commits & updated the sha256sum to the artifacthub-pkg.yml file.

I'll make sure such mistakes won't be repeated in future contributions.

@chipzoller
Copy link
Contributor

No problem. If the guide isn't clear, let us know.

@chipzoller chipzoller merged commit 438bfca into kyverno:main Aug 2, 2024
265 checks passed
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

Successfully merging this pull request may close these issues.

3 participants