Skip to content

Commit

Permalink
Add label selector for etcd pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
shashidharatd committed Feb 18, 2017
1 parent 46cd8ec commit a3270b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions federation/pkg/kubefed/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ func createPVC(clientset *client.Clientset, namespace, svcName, etcdPVCapacity s
api.ResourceStorage: capacity,
},
},
Selector: &metav1.LabelSelector{MatchLabels: apiserverSvcSelector},
},
}

Expand Down
1 change: 1 addition & 0 deletions federation/pkg/kubefed/init/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ func fakeInitHostFactory(apiserverServiceType v1.ServiceType, federationName, na
v1.ResourceStorage: capacity,
},
},
Selector: &metav1.LabelSelector{MatchLabels: apiserverSvcSelector},
},
}

Expand Down

0 comments on commit a3270b1

Please sign in to comment.