Commit 20478242 authored by Ioannis Plakas's avatar Ioannis Plakas

Delete commented blocks

parent f62092b3
......@@ -104,12 +104,7 @@ func (r *PgouvReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
} else if diff < 0 {
logger.Info("need to delete a pod")
podlist := &corev1.PodList{}
//lbs := map[string]string{
// "app": instance.Name,
// }
//labelSelector := labels.SelectorFromSet(lbs)
// lsopt := &client.ListOption{LabelSelector: labelSelector, Namespace: instance.name}
err := r.List(context, podlist, client.InNamespace(req.Namespace), client.MatchingLabels{"app": instance.Name})
err := r.List(context, podlist, client.InNamespace(req.Namespace), client.MatchingLabels{"app": instance.Name})
if err != nil {
if errors.IsNotFound(err) {
return reconcile.Result{}, nil
......
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