kubescape / storage

Apache License 2.0
1 stars 6 forks source link

Delete application profiles based on template hash #78

Closed dwertent closed 9 months ago

dwertent commented 9 months ago

Type

bug_fix


Description


PR changes walkthrough

Relevant files                                                                                                                                 
Bug fix
1 files
cleanup.go                                                                                                   
    pkg/cleanup/cleanup.go

    **This file has seen changes in the import statements and the
    `resourceKindToHandler` map. The function `deleteByWlid` has
    been replaced by `deleteByTemplateHashOrWlid` for the keys
    "applicationactivities", "applicationprofiles", and
    "applicationprofilesummaries". A new function
    `deleteByTemplateHashOrWlid` has been added which deletes
    based on template hash or wlid.**
+19/-7
Enhancement
1 files
discovery.go                                                                                               
    pkg/cleanup/discovery.go

    **The function `fetchInstanceIdsAndImageIdsFromRunningPods`
    has been renamed to
    `fetchInstanceIdsAndImageIdsAndReplicasFromRunningPods` and
    now also fetches replicas from running pods. A new field
    `RunningTemplateHash` has been added to the `ResourceMaps`
    struct.**
+9/-2
Dependencies
2 files
go.mod                                                                                                           
    go.mod

    **The version of the dependency
    `github.com/kubescape/k8s-interface` has been updated from
    v0.0.153 to v0.0.154.**
+1/-1
go.sum                                                                                                           
    go.sum

    **The checksums for the dependency
    `github.com/kubescape/k8s-interface` have been updated to
    reflect the new version v0.0.154.**
+2/-2

User description

Sorry, we do not accept changes directly against this repository. Please see CONTRIBUTING.md for information on where and how to contribute instead.

codiumai-pr-agent-free[bot] commented 9 months ago

PR Description updated to latest commit (https://github.com/kubescape/storage/commit/8b92cc2110db97123040e31e0fe5b76fc977cbe2)

codiumai-pr-agent-free[bot] commented 9 months ago

PR Analysis

github-actions[bot] commented 9 months ago

Summary: