Skip to content

Commit c3f7efc

Browse files
committed
fix: add namespace when listing HelmReleaseProxies related to HelmChartProxy
1 parent 21eb535 commit c3f7efc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/helmchartproxy/helmchartproxy_controller_phases.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func (r *HelmChartProxyReconciler) getExistingHelmReleaseProxy(ctx context.Conte
104104
helmReleaseProxyList := &addonsv1alpha1.HelmReleaseProxyList{}
105105

106106
listOpts := []client.ListOption{
107+
client.InNamespace(helmChartProxy.Namespace),
107108
client.MatchingLabels{
108109
clusterv1.ClusterNameLabel: cluster.Name,
109110
addonsv1alpha1.HelmChartProxyLabelName: helmChartProxy.Name,

0 commit comments

Comments
 (0)