This repository was archived by the owner on Jan 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 727
This repository was archived by the owner on Jan 13, 2026. It is now read-only.
Incorrect workload view #6400
Copy link
Copy link
Closed
Labels
awaiting-more-evidenceNeed more info to actually get it done.Need more info to actually get it done.staleAutomatic label to stale issues due inactivity to be closed if no further actionAutomatic label to stale issues due inactivity to be closed if no further action
Milestone
Description
Describe the bug
When helm chart has templates with comments in header, workload shows incorrect count of pods.
To Reproduce
Steps to reproduce the behavior:
- Install kubeapps with helm (bitnami)
- Install helm chart with kubeapps.
Helmchart must has templates manifests with comments in header.
templates/example-manifest.yaml
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
For example chart
helm repo: https://kubernetes.github.io/dashboard/
helm chart: kubernetes-dashboard/kubernetes-dashboard (version 6.0.8)
$ kubectl get all
NAME READY STATUS RESTARTS AGE
pod/kubernetes-dashboard-7f4f78d855-tz97x 1/1 Running 0 13m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes-dashboard ClusterIP 10.222.66.102 <none> 443/TCP 13m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/kubernetes-dashboard 1/1 1 1 13m
NAME DESIRED CURRENT READY AGE
replicaset.apps/kubernetes-dashboard-7f4f78d855 1 1 1 13m
- Check kubeapps api logs (detected 9 times deployment)
$ kubectl logs deployments/kubeapps-internal-kubeappsapis
es-dashboard-debug/kubernetes-dashboard"
E0703 06:38:34.032137 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc0010fe060} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032168 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc00017c110} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032237 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc00017c1a0} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032232 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc0004d8138} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032282 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc0004d8128} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032290 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc0004d8178} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032151 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc00017c0d0} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032246 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc0004d80b8} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032335 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc00017c0c0} ResourceRef:api_version:"apps/v1" kind:"Deployment" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
E0703 06:38:34.032978 1 server.go:395] Event received: {Event:{Type:ADDED Object:0xc001950120} ResourceRef:api_version:"v1" kind:"Service" name:"kubernetes-dashboard" namespace:"kubernetes-dashboard-debug"}
I0703 06:38:34.703820 1 packages.go:249] "+core GetInstalledPackageResourceRefs" cluster="default" namespace="kubernetes-dashboard-debug" identifier="test"
I0703 06:38:34.703879 1 server.go:1022] "+helm GetInstalledPackageResourceRefs" cluster="default" namespace="kubernetes-dashboard-debug" id="test"
Desktop (please complete the following information):
- Version 2.7.0
- Kubernetes version 1.22
- Package version helm-bitnami kubeapps 12.3.2
Metadata
Metadata
Assignees
Labels
awaiting-more-evidenceNeed more info to actually get it done.Need more info to actually get it done.staleAutomatic label to stale issues due inactivity to be closed if no further actionAutomatic label to stale issues due inactivity to be closed if no further action
Type
Projects
Status
✅ Done

