mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 01:50:55 +00:00
use core client with explicit version globally
This commit is contained in:
@@ -263,7 +263,7 @@ func (ttlc *TTLController) patchNodeWithAnnotation(node *v1.Node, annotationKey
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = ttlc.kubeClient.Core().Nodes().Patch(node.Name, types.StrategicMergePatchType, patchBytes)
|
||||
_, err = ttlc.kubeClient.CoreV1().Nodes().Patch(node.Name, types.StrategicMergePatchType, patchBytes)
|
||||
if err != nil {
|
||||
glog.V(2).Infof("Failed to change ttl annotation for node %s: %v", node.Name, err)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user