Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2404 from mfrister/fix-helm-release-workload-listing
Browse files Browse the repository at this point in the history
Fix crash on listing helm releases if v1 release exists
  • Loading branch information
hiddeco authored Aug 23, 2019
2 parents 58c211e + d3f6315 commit 64bef7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster/kubernetes/resourcekinds.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ func (hr *helmReleaseKind) getWorkloads(ctx context.Context, c *Cluster, namespa
if err := ctx.Err(); err != nil {
return nil, err
}
var names map[string]bool
var workloads []workload
names := make(map[string]bool, 0)
workloads := make([]workload, 0)
if helmReleases, err := c.client.HelmV1().HelmReleases(namespace).List(meta_v1.ListOptions{}); err == nil {
for i, _ := range helmReleases.Items {
workload := makeHelmReleaseStableWorkload(&helmReleases.Items[i])
Expand Down

0 comments on commit 64bef7a

Please sign in to comment.