Delete application profiles based on template hash #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
bug_fix
Description
deleteByWlid
function has been replaced bydeleteByTemplateHashOrWlid
for "applicationactivities", "applicationprofiles", and "applicationprofilesummaries" in theresourceKindToHandler
map.deleteByTemplateHashOrWlid
has been added which deletes based on template hash or wlid.fetchInstanceIdsAndImageIdsFromRunningPods
has been renamed tofetchInstanceIdsAndImageIdsAndReplicasFromRunningPods
and now also fetches replicas from running pods.RunningTemplateHash
has been added to theResourceMaps
struct.github.com/kubescape/k8s-interface
has been updated from v0.0.153 to v0.0.154.PR changes walkthrough
1 files
cleanup.go
pkg/cleanup/cleanup.go
This file has seen changes in the import statements and the
resourceKindToHandler
map. The functiondeleteByWlid
hasbeen replaced by
deleteByTemplateHashOrWlid
for the keys"applicationactivities", "applicationprofiles", and
"applicationprofilesummaries". A new function
deleteByTemplateHashOrWlid
has been added which deletesbased on template hash or wlid.
1 files
discovery.go
pkg/cleanup/discovery.go
The function
fetchInstanceIdsAndImageIdsFromRunningPods
has been renamed to
fetchInstanceIdsAndImageIdsAndReplicasFromRunningPods
andnow also fetches replicas from running pods. A new field
RunningTemplateHash
has been added to theResourceMaps
struct.
2 files
go.mod
go.mod
The version of the dependency
github.com/kubescape/k8s-interface
has been updated fromv0.0.153 to v0.0.154.
go.sum
go.sum
The checksums for the dependency
github.com/kubescape/k8s-interface
have been updated toreflect the new version v0.0.154.
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.