-
Notifications
You must be signed in to change notification settings - Fork 23
feat: remove Segment Backup Job from operator #1457
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
Reviewer's GuideThis PR removes the legacy Segment Backup Job and its metrics collection path from the operator, refactors the RBAC action into a deletion-only workflow, and cleans up all related constants, flags, tests, annotations, and sample manifests. Sequence diagram for Segment Backup CronJob deletion processsequenceDiagram
participant Operator
participant KubernetesAPI
participant "Securesign Instance"
Operator->>KubernetesAPI: Delete segment-backup-nightly-metrics CronJob
KubernetesAPI-->>Operator: Success or NotFound
Operator->>"Securesign Instance": Update status condition (Removed)
"Securesign Instance"-->>Operator: Status updated
ER diagram for removal of Segment Backup Job related resourceserDiagram
SECURESIGN ||--o{ SEGMENT_BACKUP_CRONJOB : removes
%% SEGMENT_BACKUP_JOB entity removed
SECURESIGN {
string name
string namespace
%% annotation 'rhtas.redhat.com/metrics' removed
}
SEGMENT_BACKUP_CRONJOB {
string name
string namespace
}
Class diagram for removal of Segment Backup Job and related actionsclassDiagram
class rbacAction {
+Name() string
+CanHandle(ctx, instance) bool
+Handle(ctx, instance) *action.Result
+cleanupResource(ctx, instance, object) *action.Result
}
class segmentBackupCronJob {
+Name() string
+CanHandle(ctx, instance) bool
+Handle(ctx, instance) *action.Result
}
%% Removed class: segmentBackupJob (was previously present)
%% Removed methods and attributes related to SegmentBackupJob
rbacAction --|> action.Action
segmentBackupCronJob --|> action.Action
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Compliance Guide 🔍(Compliance updated until commit cb455d2)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 2c2860d
|
|||||||||||||||||||||||||||||||||||||||||||||||
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.
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
2c2860d to
48c5596
Compare
Signed-off-by: Tomas Turek <tturek@redhat.com>
48c5596 to
cb455d2
Compare
Summary by Sourcery
Remove the Segment Backup Job feature and associated metrics support, cleaning up related resources and configurations throughout the operator.
Enhancements:
CI:
Documentation:
Tests: