diff --git a/apps/event-worker/src/target-scan/gke.ts b/apps/event-worker/src/target-scan/gke.ts index 9975fe9c..78a70c72 100644 --- a/apps/event-worker/src/target-scan/gke.ts +++ b/apps/event-worker/src/target-scan/gke.ts @@ -159,7 +159,15 @@ const getVClustersForCluster = async ( Status: string; Created: string; Version: string; - }>; + }> | null; + + if (vclusters == null) { + log.info( + `No vclusters found for cluster: ${cluster.name}/${cluster.id}`, + { project, clusterName: cluster.name, workspaceId }, + ); + return []; + } const clusterTarget = clusterToTarget( workspaceId,