Skip to content

Commit cae6cf8

Browse files
committed
Rename variables and struct to satisfy kube-1.16.0
1 parent 87f81c2 commit cae6cf8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pkg/controller/disruption/disruption.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ func (r *ReconcileMachineDisruption) getMachinesForMachineDisruptionBudget(mdb *
394394
Namespace: mdb.Namespace,
395395
LabelSelector: sel,
396396
}
397-
err = r.client.List(context.TODO(), machines, client.UseListOptions(listOptions))
397+
err = r.client.List(context.TODO(), machines, listOptions)
398398
if err != nil {
399399
return nil, err
400400
}

pkg/controller/machinehealthcheck/machinehealthcheck_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,12 @@ func (r *ReconcileMachineHealthCheck) getNodeNamesForMHC(mhc healthcheckingv1alp
201201
}
202202
options := client.ListOptions{
203203
LabelSelector: selector,
204+
Namespace: mhc.GetNamespace(),
204205
}
205206

206207
if err := r.client.List(context.Background(),
207208
machineList,
208-
client.UseListOptions(options.InNamespace(mhc.GetNamespace()))); err != nil {
209+
&options); err != nil {
209210
return nil, fmt.Errorf("failed to list machines: %v", err)
210211
}
211212

pkg/controller/machinehealthcheck/machinehealthcheck_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func TestGetNodeCondition(t *testing.T) {
103103
{
104104
node: maotesting.NewNode("doesNotHaveCondition", true),
105105
condition: &corev1.NodeCondition{
106-
Type: corev1.NodeOutOfDisk,
106+
Type: corev1.NodeDiskPressure,
107107
Status: corev1.ConditionTrue,
108108
},
109109
expected: nil,

0 commit comments

Comments
 (0)