Skip to content

Commit 7d2d9b3

Browse files
committed
health: filter non-gateway addons
Signed-off-by: yue9944882 <[email protected]>
1 parent 677583c commit 7d2d9b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/addon/controllers/health.go

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
multicluster "github.com/oam-dev/cluster-gateway/pkg/apis/cluster/transport"
88
"github.com/oam-dev/cluster-gateway/pkg/apis/cluster/v1alpha1"
9+
"github.com/oam-dev/cluster-gateway/pkg/common"
910
"github.com/oam-dev/cluster-gateway/pkg/event"
1011
"github.com/oam-dev/cluster-gateway/pkg/generated/clientset/versioned"
1112
"k8s.io/apimachinery/pkg/api/meta"
@@ -50,6 +51,9 @@ func SetupClusterGatewayHealthProberWithManager(mgr ctrl.Manager) error {
5051
}
5152

5253
func (c *ClusterGatewayHealthProber) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error) {
54+
if request.Name != common.AddonName {
55+
return reconcile.Result{}, nil
56+
}
5357
clusterName := request.Namespace
5458
gw, err := c.gatewayClient.ClusterV1alpha1().
5559
ClusterGateways().

0 commit comments

Comments
 (0)