replace deprecated pointer funcs

This commit is contained in:
Pires
2023-03-13 10:51:22 +00:00
committed by Pires
parent 109b1eed8b
commit eb5d959215
2 changed files with 6 additions and 6 deletions

View File

@@ -275,8 +275,8 @@ func (c *leaseController) newLease(ctx context.Context, node *corev1.Node, base
Namespace: corev1.NamespaceNodeLease,
},
Spec: coordinationv1.LeaseSpec{
HolderIdentity: pointer.StringPtr(node.Name),
LeaseDurationSeconds: pointer.Int32Ptr(c.leaseDurationSeconds),
HolderIdentity: pointer.String(node.Name),
LeaseDurationSeconds: pointer.Int32(c.leaseDurationSeconds),
},
}
} else {