Skip to content

[Feature]: Deprecate .spec.backup.retentionPolicy #7065

Description

@gbartolini

Is there an existing issue already for this feature request/idea?

  • I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?

For historical reasons, retention policies are currently included in the .spec.backup section. This approach was necessary because object stores were the only supported method at the time, and we had not yet considered the use of plugins.

With the introduction of plugins, we need to establish a consistent way to define retention policies. This may involve allowing each plugin to manage its own retention policies.

Describe the solution you'd like

  • Implement the retention policies specification in the plugin
  • Document that this feature will become obsolete and provide steps on how to move it in the plugin
  • Log at cluster start that this feature is deprecated

Describe alternatives you've considered

N/A

Additional context

No response

Backport?

No

Are you willing to actively contribute to this feature?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    triage
    on Mar 4, 2025
  2. self-assigned this
    on Mar 4, 2025
  3. added
    documentation 📖
    enhancement 🪄
    on Mar 5, 2025
  4. added this to the 1.26.0 milestone on Mar 5, 2025
  5. moved this from Ready to In Development in CloudNativePG operator developmenton Mar 7, 2025
  6. added a commit that references this issue on May 13, 2025
    b2cea3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation 📖enhancement 🪄triage

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions