Skip to content

Commit

Permalink
fix: use resource id map when setting up helm parent
Browse files Browse the repository at this point in the history
This will set the parent in the very first run
  • Loading branch information
adityathebe authored and moshloop committed Jul 16, 2024
1 parent 5d0b7d7 commit a0d5678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ func getKubernetesParent(obj *unstructured.Unstructured, exclusions v1.Kubernete
if helmName != "" && helmNamespace != "" {
allParents = append([]v1.ConfigExternalKey{{
Type: ConfigTypePrefix + "HelmRelease",
ExternalID: getKubernetesAlias("HelmRelease", helmNamespace, helmName),
ExternalID: lo.CoalesceOrEmpty(resourceIDMap.Get(helmNamespace, "HelmRelease", helmName), getKubernetesAlias("HelmRelease", helmNamespace, helmName)),
}}, allParents...)
}

Expand Down

0 comments on commit a0d5678

Please sign in to comment.