Skip to content

Commit

Permalink
update garbage collector to get list of pods which are krm functions
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Harish Naidu <kushal.harish.naidu@ericsson.com>
  • Loading branch information
kushnaidu committed May 14, 2024
1 parent 92c14e8 commit 2d76c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func/internal/podevaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (pcm *podCacheManager) podCacheManager() {
func (pcm *podCacheManager) garbageCollector() {
var err error
podList := &corev1.PodList{}
err = pcm.podManager.kubeClient.List(context.Background(), podList, client.InNamespace(pcm.podManager.namespace))
err = pcm.podManager.kubeClient.List(context.Background(), podList, client.InNamespace(pcm.podManager.namespace), client.HasLabels{krmFunctionLabel})
if err != nil {
klog.Warningf("unable to list pods in namespace %v: %v", pcm.podManager.namespace, err)
return
Expand Down

0 comments on commit 2d76c43

Please sign in to comment.