mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
fix: not tagging static public IP
This commit is contained in:
parent
dfc91819b7
commit
fdd8f3c06b
@ -2238,10 +2238,12 @@ func (az *Cloud) reconcilePublicIP(clusterName string, service *v1.Service, lbNa
|
|||||||
}
|
}
|
||||||
dirtyPIP = true
|
dirtyPIP = true
|
||||||
}
|
}
|
||||||
|
if !isUserAssignedPIP {
|
||||||
changed := az.ensurePIPTagged(service, &pip)
|
changed := az.ensurePIPTagged(service, &pip)
|
||||||
if changed {
|
if changed {
|
||||||
dirtyPIP = true
|
dirtyPIP = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if shouldReleaseExistingOwnedPublicIP(&pip, wantLb, isInternal, isUserAssignedPIP, desiredPipName, serviceIPTagRequest) {
|
if shouldReleaseExistingOwnedPublicIP(&pip, wantLb, isInternal, isUserAssignedPIP, desiredPipName, serviceIPTagRequest) {
|
||||||
// Then, release the public ip
|
// Then, release the public ip
|
||||||
pipsToBeDeleted = append(pipsToBeDeleted, &pip)
|
pipsToBeDeleted = append(pipsToBeDeleted, &pip)
|
||||||
|
Loading…
Reference in New Issue
Block a user