Skip to content

Conversation

@karthikmanam
Copy link
Contributor

This policy ensures all Kubernetes Jobs have a reasonable timeout set via activeDeadlineSeconds to prevent indefinitely running jobs and resource consumption issues.

Related Issue(s)

Description

  1. It addresses a common operational issue (stuck jobs)
  2. It provides reasonable defaults (1-24 hours)
  3. It's part of resource lifecycle management
  4. It helps prevent resource leaks

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.

This policy ensures all Kubernetes Jobs have a reasonable timeout
set via activeDeadlineSeconds to prevent indefinitely running jobs
and resource consumption issues.

Key features:
- Enforces activeDeadlineSeconds between 1 hour and 24 hours
- Prevents Jobs from running indefinitely
- Includes comprehensive Chainsaw tests
- Helps with resource management and cost optimization

Signed-off-by: Karthik babu Manam <[email protected]>
@karthikmanam
Copy link
Contributor Author

@realshuting Could you please review this? I have incorporated the tests as you suggested in the weekly community meeting.

@realshuting realshuting self-requested a review March 12, 2025 15:19
@JimBugwadia JimBugwadia self-requested a review October 21, 2025 23:08
@JimBugwadia JimBugwadia enabled auto-merge (squash) October 21, 2025 23:08
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.

2 participants