Skip to content
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

[KO-321] [KO-320] Added a flag to disable PDB #286

Merged
merged 5 commits into from
May 3, 2024
Merged

[KO-321] [KO-320] Added a flag to disable PDB #286

merged 5 commits into from
May 3, 2024

Conversation

sud82
Copy link
Collaborator

@sud82 sud82 commented Apr 24, 2024

Added tests for disablePDB flag

Added tests for disablePDB flag
test/poddisruptionbudget_test.go Outdated Show resolved Hide resolved
controllers/poddistruptionbudget.go Show resolved Hide resolved
controllers/aerospikecluster_controller.go Show resolved Hide resolved
controllers/poddistruptionbudget.go Outdated Show resolved Hide resolved
test/poddisruptionbudget_test.go Outdated Show resolved Hide resolved
test/poddisruptionbudget_test.go Outdated Show resolved Hide resolved
@@ -49,6 +49,11 @@ func (r *SingleClusterReconciler) deletePDB() error {
return err
}

if !isPDBCreatedByOperator(pdb) {
r.Log.Info("PodDisruptionBudget is not created/owned by operator. Skipping delete")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we print pdb name as well?

@sud82 sud82 merged commit a59c977 into master May 3, 2024
8 of 9 checks passed
@sud82 sud82 deleted the KO-321 branch November 15, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants