Update gateway identity on gateway mirror endpoints (#4559)

When the identity annotation on a gateway service is updated, this change is not propagated to the mirror gateway endpoints object.

This is because the annotations are updated on the wrong object and the changes are lost.

Signed-off-by: Alex Leong <alex@buoyant.io>
This commit is contained in:
Alex Leong 2020-06-05 09:21:35 -07:00 committed by GitHub
parent 654839e639
commit cffa07ddba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ func (rcsw *RemoteClusterServiceWatcher) updateGatewayMirrorService(spec *Gatewa
}
}
endpoints.Annotations[consts.RemoteGatewayIdentity] = spec.identity
updatedEndpoints.Annotations[consts.RemoteGatewayIdentity] = spec.identity
_, err = rcsw.localAPIClient.Client.CoreV1().Services(rcsw.serviceMirrorNamespace).Update(updatedService)
if err != nil {