Skip to content

Commit d72660e

Browse files
committed
Update remote service on annotations changes
1 parent 55df8e2 commit d72660e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/controller/service/service_controller.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,11 @@ func (r *ReconcileService) Reconcile(request reconcile.Request) (reconcile.Resul
202202
}
203203

204204
log.Info("found remote service")
205-
if !reflect.DeepEqual(found.Spec, rService.Spec) {
205+
if !reflect.DeepEqual(found.Spec, rService.Spec) ||
206+
!reflect.DeepEqual(found.Annotations, rService.Annotations) {
206207
found.Spec = rService.Spec
208+
found.Annotations = rService.Annotations
209+
207210
log.Info("updating service")
208211
err := client.Update(context.TODO(), found)
209212
if err != nil {

0 commit comments

Comments
 (0)