-
Notifications
You must be signed in to change notification settings - Fork 231
Feature/OADP migration SREP-1607 #2531
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
base: master
Are you sure you want to change the base?
Feature/OADP migration SREP-1607 #2531
Conversation
- Replace hardcoded bucket name with ${OADP_BACKUP_BUCKET}
- Replace hardcoded AWS region with ${AWS_REGION}
- Document required environment variables in README
This allows for proper configuration management and avoids
hardcoded values that would be inappropriate for production.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: charlesgong The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold need confirmation of owners |
deploy/oadp-configuration/130-oadp.DataProtectionApplication.yaml
Outdated
Show resolved
Hide resolved
- Remove CSI plugin from DataProtectionApplication (not needed without snapshots) - Update subscription channel from 'stable-1.4' to 'stable' for latest version - Fix OperatorGroup name from 'redhat-oadp-operator' to 'oadp-operator-group' - Fix Subscription name from 'redhat-oadp-operator' to 'openshift-adp' These changes align with testing recommendations and best practices.
- Set reviewers to srep-functional-leads and srep-team-leads - Set approvers to srep-team-leads - Aligns with team structure for OADP/backup related changes
|
/unhold |
Generated by running 'make' to create SelectorSyncSet templates for integration, staging, and production environments. This resolves the CI build error requiring generated files.
|
/hold |
- Add srep-functional-team-hulk as reviewer and approver - Ensures team hulk can review and approve OADP/backup related changes
- Remove operator installation files (Subscription, Namespace, OperatorGroup) - Keep only DataProtectionApplication and related configuration files - Update README to reflect enable-only approach with prerequisites - This assumes OADP operator is pre-installed on target clusters Benefits: - Safer deployment (no operator installation conflicts) - Works with existing OADP installations - Focuses on configuration rather than installation Files removed: - 100-oadp.Subscription.yaml (operator installation) - 110-oadp.Namespace.yaml (namespace creation) - 120-oadp.OperatorGroup.yaml (operator group setup) Files kept: - 130-oadp.DataProtectionApplication.yaml (main config) - 140-oadp.TestBackup.yaml (validation) - hive-specific/ configurations (RBAC, schedules) Addresses feedback for SREP-1607 migration strategy.
- Create deploy/oadp-operator-install/ directory for Red Hat managed clusters - Add operator installation manifests (Subscription, Namespace, OperatorGroup) - Target clusters with api.openshift.com/customer=redhat selector - Exclude FedRAMP and customer production clusters - Update generated Hive templates via make Components: - 100-oadp.Subscription.yaml - OADP operator subscription - 110-oadp.Namespace.yaml - openshift-adp namespace creation - 120-oadp.OperatorGroup.yaml - Operator group setup - config.yaml - SelectorSyncSet targeting Red Hat clusters - OWNERS - Team ownership (srep-functional-leads, srep-team-leads, srep-functional-team-hulk) - README.md - Documentation for Red Hat cluster installation This complements the existing deploy/oadp-configuration/ which provides enable-only functionality for clusters with pre-installed OADP operators. Deployment Strategy: 1. Install OADP operator on Red Hat managed clusters (this config) 2. Enable OADP with DataProtectionApplication (existing config) 3. Remove MVO after successful OADP deployment Addresses SREP-1607: Setup OADP for RH Internal Clusters after MVO Removal
- Change config.yaml selector to match Hive clusters specifically - Use ext-managed.openshift.io/hive-shard: "true" label selector - Exclude FedRAMP clusters only (remove custom customer filtering) - Update README to reflect Hive-only targeting - Regenerate Hive templates via make This aligns with leadership guidance to focus OADP operator installation on Hive-managed clusters specifically, following the same pattern as the existing velero-configuration. Target clusters: - ext-managed.openshift.io/hive-shard: "true" - NOT api.openshift.com/fedramp: "true" Addresses feedback on SREP-1607 implementation strategy.
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.
Can we move all the OADP configuration to https://github.com/openshift/managed-cluster-config/tree/master/deploy/velero-configuration/hive-specific directory such that it's known and clear that the configuration is only meant for Hive clusters?
Move all OADP operator installation and configuration files to the existing velero-configuration/hive-specific directory to make it clear that this configuration is only for Hive clusters. Changes: ✅ Moved OADP operator installation to velero-configuration/hive-specific/ - 100-oadp.Subscription.yaml (operator subscription) - 110-oadp.Namespace.yaml (openshift-adp namespace) - 120-oadp.OperatorGroup.yaml (operator group) ✅ Moved OADP configuration to velero-configuration/hive-specific/ - 130-oadp.DataProtectionApplication.yaml (main DPA config) - 140-oadp.TestBackup.yaml (validation backup) ✅ Replaced legacy Velero files with OADP equivalents: - 05-oadp-schedule-admins-cluster.ClusterRole.yaml (replaces velero version) - 111-oadp.Schedules.yaml (replaces velero schedules) ✅ Removed separate OADP directories: - deploy/oadp-configuration/ (consolidated into velero-configuration) - deploy/oadp-operator-install/ (consolidated into velero-configuration) ✅ Added comprehensive README.md documenting the OADP migration strategy ✅ Regenerated Hive templates via make Target Clusters: Hive clusters with ext-managed.openshift.io/hive-shard=true Excludes: FedRAMP clusters This consolidation makes it clear that OADP is the Hive-specific replacement for MVO and provides a single location for all backup/restore configuration targeting Hive clusters. Addresses SREP-1607: Setup OADP for RH Internal Clusters after MVO Removal
|
/hold commit is untested |
Critical fix for SyncSet resource management during MVO to OADP migration. Changes: ✅ Add resourceApplyMode: "Upsert" to hive-specific config.yaml ✅ Update README with detailed migration strategy documentation ✅ Regenerate Hive templates with updated configuration Why this is critical: - Without explicit resourceApplyMode, defaults to "Upsert" - Ensures old Velero resources are NOT automatically deleted - Allows safe coexistence of MVO and OADP during transition - Prevents resource conflicts during deployment Migration Strategy: Phase 1 (this PR): Deploy OADP with Upsert mode - ✅ OADP resources created alongside existing Velero resources - ✅ Both backup systems can coexist safely - ✅ No automatic deletion of existing resources Phase 2 (future): Validate OADP functionality Phase 3 (future): Clean up old resources with Sync mode References: - https://github.com/openshift/hive/blob/master/docs/syncset.md - SREP-1607: Setup OADP for RH Internal Clusters after MVO Removal This addresses the resource naming conflicts identified during migration planning and ensures a safe deployment path.
- Changed channel from 'stable' to 'stable-1.4' in OADP Subscription - The generic 'stable' channel does not exist for redhat-oadp-operator - 'stable-1.4' is the default channel and provides OADP v1.4.5 - Tested and validated on oadp-test-cluster (OpenShift 4.18.24) - Resolves subscription installation failures Related: SREP-1607 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Updated all environment templates (integration/stage/production) - Propagated channel change from 'stable' to 'stable-1.4' to templates - Generated via 'make' command as required before push Related: SREP-1607 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
/unhold tested in personal cluster |
|
@charlesgong: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/hold |
What type of PR is this?
(bug/feature/cleanup/documentation)
feature
What this PR does / why we need it?
Which Jira/Github issue(s) this PR fixes?
SREP-1607
Fixes #
Special notes for your reviewer:
Pre-checks (if applicable):
Tested latest changes against a cluster
Included documentation changes with PR
If this is a new object that is not intended for the FedRAMP environment (if unsure, please reach out to team FedRAMP), please exclude it with: