This commit is contained in:
yarntime@163.com 2016-12-05 11:58:21 +08:00
parent 81177226a8
commit 148170da5d

View File

@ -215,7 +215,7 @@ func (psc *StatefulSetController) deletePod(obj interface{}) {
// getPodsForStatefulSets returns the pods that match the selectors of the given statefulset.
func (psc *StatefulSetController) getPodsForStatefulSet(ps *apps.StatefulSet) ([]*v1.Pod, error) {
// TODO: Do we want the statefulset to fight with RCs? check parent statefulset annoation, or name prefix?
// TODO: Do we want the statefulset to fight with RCs? check parent statefulset annotation, or name prefix?
sel, err := metav1.LabelSelectorAsSelector(ps.Spec.Selector)
if err != nil {
return []*v1.Pod{}, err