Skip to content
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
4 changes: 3 additions & 1 deletion util/k8s/k8sApplicationService.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,15 @@ func (impl *K8sApplicationServiceImpl) GetResourceList(ctx context.Context, toke
return resourceList, err
}
k8sRequest := request.K8sRequest
//store the copy of requested resource identifier
resourceIdentifierCloned := k8sRequest.ResourceIdentifier
resp, namespaced, err := impl.k8sClientService.GetResourceList(ctx, restConfig, k8sRequest)
if err != nil {
impl.logger.Errorw("error in getting resource list", "err", err, "request", request)
return resourceList, err
}
checkForResourceCallback := func(namespace, group, kind, resourceName string) bool {
resourceIdentifier := k8sRequest.ResourceIdentifier
resourceIdentifier := resourceIdentifierCloned
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can start with empty installation

resourceIdentifier.Name = resourceName
resourceIdentifier.Namespace = namespace
if group != "" && kind != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove this check

Expand Down