Skip to content

Commit

Permalink
rename pdb
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed May 31, 2024
1 parent 2dd0301 commit 13d3daa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions images/virt-artifact/patches/015-pdb-rename.patch
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,
3 changes: 3 additions & 0 deletions images/virt-artifact/patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ A patch has been added to enable the configuration of the rate limiter via the e

#### `014-delete-apiserver.patch`
Do not create Kubevirt APIService.

#### `015-pdb-rename.patch`
Create a PodDisruptionBudgets with generateName "dvpinternal-disruption-budget-"

0 comments on commit 13d3daa

Please sign in to comment.