Skip to content

Commit

Permalink
Merge pull request kubernetes#101818 from nilo19/automated-cherry-pic…
Browse files Browse the repository at this point in the history
…k-of-#101752-upstream-release-1.20

Cherry pick of kubernetes#101752: fix: not tagging static public IP
  • Loading branch information
k8s-ci-robot authored May 8, 2021
2 parents 6c9e3d8 + 7cfe069 commit cc8a07f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,11 @@ func (az *Cloud) reconcilePublicIP(clusterName string, service *v1.Service, lbNa
}
dirtyPIP = true
}
changed := az.ensurePIPTagged(service, &pip)
if changed {
dirtyPIP = true
if !isUserAssignedPIP {
changed := az.ensurePIPTagged(service, &pip)
if changed {
dirtyPIP = true
}
}
if shouldReleaseExistingOwnedPublicIP(&pip, wantLb, isInternal, isUserAssignedPIP, desiredPipName, serviceIPTagRequest) {
// Then, release the public ip
Expand Down

0 comments on commit cc8a07f

Please sign in to comment.