Commit 148170da authored by yarntime@163.com's avatar yarntime@163.com

fix typo

parent 81177226
...@@ -215,7 +215,7 @@ func (psc *StatefulSetController) deletePod(obj interface{}) { ...@@ -215,7 +215,7 @@ func (psc *StatefulSetController) deletePod(obj interface{}) {
// getPodsForStatefulSets returns the pods that match the selectors of the given statefulset. // getPodsForStatefulSets returns the pods that match the selectors of the given statefulset.
func (psc *StatefulSetController) getPodsForStatefulSet(ps *apps.StatefulSet) ([]*v1.Pod, error) { 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) sel, err := metav1.LabelSelectorAsSelector(ps.Spec.Selector)
if err != nil { if err != nil {
return []*v1.Pod{}, err return []*v1.Pod{}, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment