Kubernetes: detect changes for resources other than endpoints
This commit is contained in:
parent
4b456f3b76
commit
7f307d60c4
2 changed files with 30 additions and 4 deletions
|
@ -48,12 +48,10 @@ func objChanged(oldObj, newObj interface{}) bool {
|
|||
}
|
||||
|
||||
if _, ok := oldObj.(*corev1.Endpoints); ok {
|
||||
if endpointsChanged(oldObj.(*corev1.Endpoints), newObj.(*corev1.Endpoints)) {
|
||||
return true
|
||||
}
|
||||
return endpointsChanged(oldObj.(*corev1.Endpoints), newObj.(*corev1.Endpoints))
|
||||
}
|
||||
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
func endpointsChanged(a, b *corev1.Endpoints) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue