Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit a4eecf5

Browse files
use core client with explicit version globally
1 parent 5cab8c1 commit a4eecf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/volume/cinder/cinder_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func getZonesFromNodes(kubeClient clientset.Interface) (sets.String, error) {
144144
// TODO: caching, currently it is overkill because it calls this function
145145
// only when it creates dynamic PV
146146
zones := make(sets.String)
147-
nodes, err := kubeClient.Core().Nodes().List(metav1.ListOptions{})
147+
nodes, err := kubeClient.CoreV1().Nodes().List(metav1.ListOptions{})
148148
if err != nil {
149149
glog.V(2).Infof("Error listing nodes")
150150
return zones, err

0 commit comments

Comments
 (0)