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

Fix (Flux)HelmRelease cluster lookups #2018

Merged
merged 1 commit into from
May 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cluster/kubernetes/resourcekinds.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ func (fhr *fluxHelmReleaseKind) getWorkloads(c *Cluster, namespace string) ([]wo
}

var workloads []workload
for _, f := range fluxHelmReleases.Items {
workloads = append(workloads, makeFluxHelmReleaseWorkload(&f))
for i, _ := range fluxHelmReleases.Items {
workloads = append(workloads, makeFluxHelmReleaseWorkload(&fluxHelmReleases.Items[i]))
}

return workloads, nil
Expand Down Expand Up @@ -459,8 +459,8 @@ func (hr *helmReleaseKind) getWorkloads(c *Cluster, namespace string) ([]workloa
}

var workloads []workload
for _, f := range helmReleases.Items {
workloads = append(workloads, makeHelmReleaseWorkload(&f))
for i, _ := range helmReleases.Items {
workloads = append(workloads, makeHelmReleaseWorkload(&helmReleases.Items[i]))
}

return workloads, nil
Expand Down