Skip to content

Commit

Permalink
fix appsubreport not generating for local-cluster when the pod dealin…
Browse files Browse the repository at this point in the history
…g with HelmRelease is the standalone pod (#237)

Signed-off-by: Mike Ng <ming@redhat.com>
  • Loading branch information
mikeshng authored Jul 29, 2022
1 parent 065c92b commit cb4cfd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/synchronizer/kubernetes/sync_appsubstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func (sync *KubeSynchronizer) SyncAppsubClusterStatus(appsub *appv1.Subscription
appsubName := appsubClusterStatus.AppSub.Name
pkgstatusNs := appsubClusterStatus.AppSub.Namespace
isLocalCluster := (sync.hub && !sync.standalone) ||
(appsubClusterStatus.Cluster == localCluster && strings.HasSuffix(appsubName, localSuffix))
(appsubClusterStatus.Cluster == localCluster && strings.HasSuffix(appsubName, localSuffix)) ||
(sync.standalone && strings.HasSuffix(appsubName, localSuffix))

if isLocalCluster || sync.standalone && skipOrphanDel {
if strings.HasSuffix(appsubName, localSuffix) {
Expand Down

0 comments on commit cb4cfd2

Please sign in to comment.