-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add label with parent resource version #151
Conversation
Signed-off-by: Matthias Bertschy <[email protected]>
Summary:
|
1 similar comment
Summary:
|
Signed-off-by: Matthias Bertschy <[email protected]>
0582f63
to
9444d16
Compare
PR Analysis
PR Feedback
How to useInstructions
|
Summary:
|
type:
enhancement
description:
This PR introduces several changes to improve the handling of workload resource versions:
ParentResourceVersion
is added to theWatchedContainerData
struct inutils.go
. This field will store the resource version of the parent workload.getContainerInfo
function inrelevancy_manager.go
is updated to return the parent resource version. This value is then stored in theWatchedContainerData
struct.generateNetworkNeighborsLabels
function innetwork_neighbors.go
is refactored to include the resource version in the generated labels.ensureInstanceID
function inapplicationprofile_manager.go
is updated to set theParentResourceVersion
field of theWatchedContainerData
struct.network_neighbors_test.go
are updated to reflect these changes.k8s-interface
dependency ingo.mod
andgo.sum
is updated to versionv0.0.150
.main_files_walkthrough:
files:
pkg/utils/utils.go
: Added a new fieldParentResourceVersion
to theWatchedContainerData
struct.pkg/relevancymanager/v1/relevancy_manager.go
: Updated thegetContainerInfo
function to return the parent resource version and store it in theWatchedContainerData
struct.pkg/networkmanager/network_neighbors.go
: Refactored thegenerateNetworkNeighborsLabels
function to include the resource version in the generated labels.pkg/applicationprofilemanager/v1/applicationprofile_manager.go
: Updated theensureInstanceID
function to set theParentResourceVersion
field of theWatchedContainerData
struct.pkg/networkmanager/network_neighbors_test.go
: Updated test cases to reflect the changes in thegenerateNetworkNeighborsLabels
function.go.mod
: Updated thek8s-interface
dependency to versionv0.0.150
.go.sum
: Updated thek8s-interface
dependency to versionv0.0.150
.