fix router annotations

This commit is contained in:
Jeff
2019-11-09 15:39:40 +08:00
committed by zryfish
parent b6f65272c8
commit 2c94cfddf1
2 changed files with 3 additions and 12 deletions

View File

@@ -287,13 +287,7 @@ func updateRouterService(namespace string, routerType corev1.ServiceType, annota
service.Spec.Type = routerType
originalAnnotations := service.GetAnnotations()
for key, val := range annotations {
originalAnnotations[key] = val
}
service.SetAnnotations(originalAnnotations)
service.SetAnnotations(annotations)
service, err = k8sClient.CoreV1().Services(constants.IngressControllerNamespace).Update(service)