-
Notifications
You must be signed in to change notification settings - Fork 26
feat: enable space default runbook retention #384
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request enables support for Runbook retention policies as part of the Space Default Retention Policy feature. The changes add the ability to configure and manage runbook retention settings alongside existing lifecycle retention policies.
Key Changes
- Added
RunbookRetentionTypeconstant to support runbook retention policy type - Implemented
RunbookRetentionPolicystruct with count-based and keep-forever retention strategies - Added comprehensive end-to-end tests covering read and modify operations for runbook retention policies
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pkg/retention/retention_policy.go |
Added RunbookRetentionType constant following existing naming patterns |
pkg/retention/space_default_runbook_retention_policy.go |
Introduced new runbook retention policy struct and constructor functions matching the established pattern for lifecycle policies |
test/e2e/space_default_retention_policy_service_test.go |
Added three test cases for runbook retention: read, count-based modification, and forever-based modification; also standardized import ordering |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
octopus-hideaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Description
Enables the Space Default Retention Policy to be set for Runbook retention.
[sc-126262]