We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e411228 commit b4610d8Copy full SHA for b4610d8
pkg/operator/resources/batchapi/api.go
@@ -192,6 +192,11 @@ func GetAllAPIs(virtualServices []istioclientnetworking.VirtualService, k8sJobs
192
193
for _, jobKey := range inProgressJobKeys {
194
alreadyAdded := false
195
+ if _, ok := batchAPIsMap[jobKey.APIName]; !ok {
196
+ // It is possible that the Batch API may have been deleted but the in progress job keys have not been deleted yet
197
+ continue
198
+ }
199
+
200
for _, jobStatus := range batchAPIsMap[jobKey.APIName].JobStatuses {
201
if jobStatus.ID == jobKey.ID {
202
alreadyAdded = true
0 commit comments