-
Notifications
You must be signed in to change notification settings - Fork 112
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
Checking for deployment equality in deployment cache #275
Conversation
Signed-off-by: Aaron Schlesinger <[email protected]>
Signed-off-by: Aaron Schlesinger <[email protected]>
Signed-off-by: Aaron Schlesinger <[email protected]>
Signed-off-by: Aaron Schlesinger <[email protected]>
@ajanth97 what do you think? |
pkg/k8s/deployment_cache.go
Outdated
@@ -178,7 +206,8 @@ func (k *K8sDeploymentCache) addEvt(evt watch.Event) error { | |||
"watch event did not contain a Deployment", | |||
) | |||
} | |||
k.latest[depl.GetObjectMeta().GetName()] = *depl | |||
depl.GetName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arschles please assign this to a variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajanth97 thanks for this. This code is redundant so I removed it.
Signed-off-by: Aaron Schlesinger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thanks @bketelsen ! I really appreciate the review. even though the linkinator check is failing, I am going to merge this. the work to fix the links is being tracked in kedacore/keda#2215 |
This PR ensures that the deployment cache sends the proper event type (
MODIFIED
orADDED
) when it does periodic pings.Checklist
README.md
docs/
directoryFixes #277