File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
containerprofilemanager/v1 Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,11 @@ require (
33
33
github.com/joncrlsn/dque v0.0.0-20241024143830-7723fd131a64
34
34
github.com/kubescape/backend v0.0.25
35
35
github.com/kubescape/go-logger v0.0.24
36
- github.com/kubescape/k8s-interface v0.0.197
36
+ github.com/kubescape/k8s-interface v0.0.198
37
37
github.com/kubescape/storage v0.0.200
38
38
github.com/kubescape/workerpool v0.0.0-20250526074519-0e4a4e7f44cf
39
39
github.com/moby/sys/mountinfo v0.7.2
40
+ github.com/oleiade/lane/v2 v2.0.0
40
41
github.com/opencontainers/go-digest v1.0.0
41
42
github.com/opencontainers/image-spec v1.1.1
42
43
github.com/panjf2000/ants/v2 v2.11.3
@@ -245,7 +246,6 @@ require (
245
246
github.com/ncw/directio v1.0.5 // indirect
246
247
github.com/nwaples/rardecode v1.1.3 // indirect
247
248
github.com/oklog/ulid v1.3.1 // indirect
248
- github.com/oleiade/lane/v2 v2.0.0 // indirect
249
249
github.com/olekukonko/tablewriter v0.0.5 // indirect
250
250
github.com/olvrng/ujson v1.1.0 // indirect
251
251
github.com/opencontainers/runtime-spec v1.2.1 // indirect
Original file line number Diff line number Diff line change @@ -704,8 +704,8 @@ github.com/kubescape/backend v0.0.25 h1:PLESA7KGJskebR5hiSqPeJ1cPQ8Ra+4yNYXKyIej
704
704
github.com/kubescape/backend v0.0.25 /go.mod h1:FpazfN+c3Ucuvv4jZYCnk99moSBRNMVIxl5aWCZAEBo =
705
705
github.com/kubescape/go-logger v0.0.24 h1:JRNlblY16Ty7hD6MSYNPvWYDxNzVAufsDDX/sZJayL0 =
706
706
github.com/kubescape/go-logger v0.0.24 /go.mod h1:sMPVCr3VpW/e+SeMaXig5kClGvmZbDXN8YktUeNU4nY =
707
- github.com/kubescape/k8s-interface v0.0.197 h1:v+frj62buBQ79/C5iZVKcDuwuZuw/pEQQasSO8fwFUk =
708
- github.com/kubescape/k8s-interface v0.0.197 /go.mod h1:j9snZbH+RxOaa1yG/bWgTClj90q7To0rGgQepxy4b+k =
707
+ github.com/kubescape/k8s-interface v0.0.198 h1:U7PNTyS9ZE9ZkSrLMclLO7Sz4grf/2CLbmpVT6Hc0nU =
708
+ github.com/kubescape/k8s-interface v0.0.198 /go.mod h1:j9snZbH+RxOaa1yG/bWgTClj90q7To0rGgQepxy4b+k =
709
709
github.com/kubescape/storage v0.0.200 h1:gLCPiAPxDii03Jo326Ye0qx1cXOAz6KH+A9B0WuL1CE =
710
710
github.com/kubescape/storage v0.0.200 /go.mod h1:uv4LMQjcTYIn7bgyMFGc0UBZ3gxdl7MNixPSjALP08E =
711
711
github.com/kubescape/workerpool v0.0.0-20250526074519-0e4a4e7f44cf h1:hI0jVwrB6fT4GJWvuUjzObfci1CUknrZdRHfnRVtKM0 =
Original file line number Diff line number Diff line change @@ -241,8 +241,7 @@ func (cpm *ContainerProfileManager) deleteContainer(container *containercollecti
241
241
container .K8s .PodName , container .K8s .ContainerName , containerID ) == 0 {
242
242
entry .data .watchedContainerData .SetStatus (objectcache .WatchedContainerStatusCompleted )
243
243
} else {
244
- // TODO return error code to storage instead of staying on learning
245
- // so we can close the TS and move away - this will not reflect on the CP and AP/NN
244
+ entry .data .watchedContainerData .SetStatus (objectcache .WatchedContainerStatusFailed )
246
245
}
247
246
248
247
// Send container termination signal (blocking send, safe because monitoring goroutine is always running)
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ const (
36
36
WatchedContainerStatusInitializing WatchedContainerStatus = helpersv1 .Initializing
37
37
WatchedContainerStatusReady WatchedContainerStatus = helpersv1 .Learning
38
38
WatchedContainerStatusCompleted WatchedContainerStatus = helpersv1 .Completed
39
+ WatchedContainerStatusFailed WatchedContainerStatus = helpersv1 .Failed
39
40
40
41
WatchedContainerStatusMissingRuntime WatchedContainerStatus = helpersv1 .MissingRuntime
41
42
WatchedContainerStatusTooLarge WatchedContainerStatus = helpersv1 .TooLarge
You can’t perform that action at this time.
0 commit comments