deprecate: mark postgres_keep_pvc_after_upgrade deprecated and remove implementation#352
deprecate: mark postgres_keep_pvc_after_upgrade deprecated and remove implementation#352jamesmarshall24 wants to merge 1 commit into
Conversation
… implementation Mark postgres_keep_pvc_after_upgrade as (Deprecated) in the CRD spec. Remove the PVC deletion task, CSV specDescriptor, role default, and upgrading.md usage example. The field remains in the CRD to avoid breaking existing CRs. Old Postgres PVC is always preserved after upgrade, consistent with standard behavior across platform operators. Assisted by: Claude Signed-off-by: James Marshall <jamarsha@redhat.com>
📝 WalkthroughWalkthroughThis pull request deprecates the ChangesPostgreSQL PVC Retention Deprecation
🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@config/crd/bases/eda.ansible.com_edas.yaml`:
- Line 2392: Update the deprecated description string "(Deprecated) Specify
whether or not to keep the old PVC after PostgreSQL upgrades" to explicitly
state that the field is now ignored and describe the new default behavior (for
example: "Deprecated — this field is ignored; old PVCs are no longer retained
after PostgreSQL upgrades by default"). Reference the PostgreSQL PVC-related
field (the description line containing "keep the old PVC after PostgreSQL
upgrades") when editing so the wording matches other deprecated entries (e.g.,
the Redis deprecation style) and clearly communicates that users can remove this
setting.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: c5083864-5999-4429-b9f4-cf1a761ef8d1
📒 Files selected for processing (5)
config/crd/bases/eda.ansible.com_edas.yamlconfig/manifests/bases/eda-server-operator.clusterserviceversion.yamldocs/upgrade/upgrading.mdroles/postgres/defaults/main.ymlroles/postgres/tasks/upgrade_postgres.yml
💤 Files with no reviewable changes (4)
- roles/postgres/tasks/upgrade_postgres.yml
- config/manifests/bases/eda-server-operator.clusterserviceversion.yaml
- roles/postgres/defaults/main.yml
- docs/upgrade/upgrading.md
| type: string | ||
| postgres_keep_pvc_after_upgrade: | ||
| description: Specify whether or not to keep the old PVC after PostgreSQL upgrades | ||
| description: "(Deprecated) Specify whether or not to keep the old PVC after PostgreSQL upgrades" |
There was a problem hiding this comment.
Consider clarifying that the field is ignored and what the new behavior is.
The deprecation notice could be more explicit about the field being ignored and the new default behavior. This would be consistent with how other deprecated fields are documented in this file (e.g., Redis fields at lines 102-105, 2143) and prevent user confusion.
📝 Suggested improvement for clarity
- description: "(Deprecated) Specify whether or not to keep the old PVC after PostgreSQL upgrades"
+ description: "(Deprecated) This field is ignored. PostgreSQL PVCs are now always preserved after upgrades."📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| description: "(Deprecated) Specify whether or not to keep the old PVC after PostgreSQL upgrades" | |
| description: "(Deprecated) This field is ignored. PostgreSQL PVCs are now always preserved after upgrades." |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@config/crd/bases/eda.ansible.com_edas.yaml` at line 2392, Update the
deprecated description string "(Deprecated) Specify whether or not to keep the
old PVC after PostgreSQL upgrades" to explicitly state that the field is now
ignored and describe the new default behavior (for example: "Deprecated — this
field is ignored; old PVCs are no longer retained after PostgreSQL upgrades by
default"). Reference the PostgreSQL PVC-related field (the description line
containing "keep the old PVC after PostgreSQL upgrades") when editing so the
wording matches other deprecated entries (e.g., the Redis deprecation style) and
clearly communicates that users can remove this setting.



Summary
Deprecates
postgres_keep_pvc_after_upgradein the CRD and removes theimplementation. The field has no effect going forward; old Postgres PVCs are
always preserved after upgrade, consistent with standard behavior across
platform operators.
(Deprecated)in CRD descriptionupgrade_postgres.ymlSummary by CodeRabbit
Release Notes
Deprecations
postgres_keep_pvc_after_upgradeconfiguration field is now marked as deprecated.Changes