-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: yaroslavborbat <[email protected]>
- Loading branch information
1 parent
2dd0301
commit 13d3daa
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/pkg/virt-controller/watch/drain/disruptionbudget/disruptionbudget.go b/pkg/virt-controller/watch/drain/disruptionbudget/disruptionbudget.go | ||
index 228518871..e38590c07 100644 | ||
--- a/pkg/virt-controller/watch/drain/disruptionbudget/disruptionbudget.go | ||
+++ b/pkg/virt-controller/watch/drain/disruptionbudget/disruptionbudget.go | ||
@@ -485,7 +485,10 @@ func (c *DisruptionBudgetController) createPDB(key string, vmi *virtv1.VirtualMa | ||
OwnerReferences: []v1.OwnerReference{ | ||
*v1.NewControllerRef(vmi, virtv1.VirtualMachineInstanceGroupVersionKind), | ||
}, | ||
- GenerateName: "kubevirt-disruption-budget-", | ||
+ GenerateName: "dvpinternal-disruption-budget-", | ||
+ Labels: map[string]string{ | ||
+ virtv1.VirtualMachineNameLabel: vmi.GetName(), | ||
+ }, | ||
}, | ||
Spec: policyv1.PodDisruptionBudgetSpec{ | ||
MinAvailable: &minAvailable, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters