code: func FilterPodsByNamespace(pods []*v1.Pod, ns string) []*v1.Pod {
  	filtered := []*v1.Pod{}
  	for _, nsPod := range pods {
  		if nsPod.Namespace == ns {
  			filtered = append(filtered, nsPod)
  		}
  	}
  	return filtered
  }
docs: // FilterPodsByNamespace filters pods outside a namespace from the given list.