From 692372e288b48f4ce6c232c2b970fb0fcd026e60 Mon Sep 17 00:00:00 2001 From: Qi Ni Date: Wed, 1 Sep 2021 13:06:35 +0800 Subject: [PATCH] fix: ignore the case when comparing azure tags in service annotation --- .../legacy-cloud-providers/azure/azure_loadbalancer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/legacy-cloud-providers/azure/azure_loadbalancer.go b/staging/src/k8s.io/legacy-cloud-providers/azure/azure_loadbalancer.go index 42209d45805..749b4cc463f 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/azure/azure_loadbalancer.go +++ b/staging/src/k8s.io/legacy-cloud-providers/azure/azure_loadbalancer.go @@ -2137,9 +2137,8 @@ func (az *Cloud) ensurePIPTagged(service *v1.Service, pip *network.PublicIPAddre if _, ok := service.Annotations[ServiceAnnotationAzurePIPTags]; ok { annotationTags = parseTags(service.Annotations[ServiceAnnotationAzurePIPTags]) } - for k, v := range annotationTags { - configTags[k] = v - } + configTags, _ = reconcileTags(configTags, annotationTags) + // include the cluster name and service names tags when comparing var clusterName, serviceNames *string if v, ok := pip.Tags[clusterNameKey]; ok {