TencentBlueKing / bk-repo

蓝鲸制品库平台(BlueKing REPO)
https://bk.tencent.com/
Other
69 stars 38 forks source link

未配置K8S集群命名空间配额时分发分析任务失败 #2407

Open cnlkl opened 2 months ago

cnlkl commented 2 months ago

What happened:

dispatch failedjava.lang.NullPointerException: null
        at com.tencent.bkrepo.analyst.dispatcher.KubernetesDispatcher.availableCount(KubernetesDispatcher.kt:124)
        at com.tencent.bkrepo.analyst.dispatcher.SubtaskPushDispatcher.dispatch(SubtaskPushDispatcher.kt:48)
        at com.tencent.bkrepo.analyst.dispatcher.SubtaskPoller$dispatch$$inlined$forEach$lambda$1.run(SubtaskPoller.kt:73)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)

分析任务分发失败,不支持未指定配额的情况

What you expected to happen:

分发成功

How to reproduce it (as minimally and precisely as possible):

不指定命名空间配额