Skip to content

Commit

Permalink
fix: not tagging static public IP
Browse files Browse the repository at this point in the history
  • Loading branch information
nilo19 committed May 8, 2021
1 parent 6c9e3d8 commit 7cfe069
Showing 1 changed file with 5 additions and 3 deletions.
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 7cfe069

Please sign in to comment.